home *** CD-ROM | disk | FTP | other *** search
Wrap
/////////////////////localization variables start//////////////////////////////// /////////////////////localization variables end////////////////////////////////// var prevSize=530; var rtpm_event_type=0; var rtpm_blocked_event_type=0; var scan_in_progress=false; var b_isReg = true; //bydefault we will assume it to be reg. version var scan_cleanin_progress=false; var sumpinstalled=false; var rbinstalled=false; function setcleaninprogress() { scan_cleanin_progress=true; } function setcleaninabort() { scan_cleanin_progress=false; } function setcleaningtext(strmsg) { document.getElementById('settext').innerText=strmsg; } function setcleaningmessage(strmsg) { document.getElementById('setmsg').innerText=strmsg; } function showHelp() { //alert('chandan'); document.all('showhelpid').click(); } function showupdatespage() { //alert('chandan'); if(!scan_in_progress) document.all('check_for_updates').click(); } function Array_push() { var A_p = 0 for (A_p = 0; A_p < arguments.length; A_p++) { this[this.length] = arguments[A_p] } return this.length } if (typeof Array.prototype.push == "undefined") { Array.prototype.push = Array_push } function JS_ShowRegButton() { //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button b_isReg = false; document.getElementById("IS_REGISTERED_VERSION").style.visibility='hidden'; return false; } function JS_HideRegButton() { //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button b_isReg = true; document.getElementById("IS_REGISTERED_VERSION").style.visibility='visible'; return true; } // Added by Priya for show and hide the register now button on the left panel function JS_SetRegFlag(breg) { //this will set the b_isReg to false and update the current pagelayout to showhide the reg. button if (parseInt(breg)==1) { //alert("true"); document.getElementById("IS_REGISTERED_VERSION").style.visibility='hidden'; } else { //alert("flase"); document.getElementById("IS_REGISTERED_VERSION").style.visibility='visible'; } return breg; } // Added by Priya for show and hide the Power Suite button in the middlw of overview page function SetPowerFlag(SE,SUMP,RB) { //SE=0 //status = NOT INSTALLED //Action =DOWNLOAD NOW //SE=1 //status = UNREGISTERED //Action =REGISTER NOW //SE=2 //status = REGISTERED //Action if(parseInt(SE)==0) { // document.all['isSERegistered'].src="txt_notinstalled.png"; document.all['isSERegistered'].innerHTML="<img src=\"txt_notinstalled.png\">"; document.all['isSEProtection'].src="txt_protection.png"; document.all['isSEReIcon'].src="icon_spyEraser_notinstalled.png"; //document.all['isSEtxt'].src="txt_spyeraser.png"; document.all['isSEtxt'].innerHTML="<img src=\"txt_spyeraser.png\">" document.all['isSEDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"seclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>"; } else if (parseInt(SE)==1) { document.all['isSERegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"seclick\").click();' hideFocus=true><img src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>"; //document.all['isSERegistered'].innerHTML="<img src=\"txt_unregistered.png\" border=0 >"; document.all['isSEProtection'].src="txt_protection_installed.png"; document.all['isSEReIcon'].src="icon_spyEraser_notinstalled.png"; //document.all['isSEtxt'].src="txt_spyeraser_installed.png"; //document.all['isSEtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"seclick\").click();' hideFocus=true><img src=\"txt_spyeraser_installed.png\" onmouseover=\"this.src='txt_spyeraser_h.png'\" onmouseout=\"this.src='txt_spyeraser_installed.png'\" onmousedown=\"this.src='txt_spyeraser_d.png'\" border=0 ></a>"; document.all['isSEtxt'].innerHTML="<img src=\"txt_spyeraser_installed.png\" border=0 >"; document.all['isSEDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"seclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>"; } else if (parseInt(SE)==2) { //document.all['isSERegistered'].src="txt_registered.png"; document.all['isSERegistered'].innerHTML="<img src=\"txt_registered.png\">"; document.all['isSEProtection'].src="txt_protection_installed.png"; document.all['isSEReIcon'].src="icon_spyEraser_registered.png"; // document.all['isSEtxt'].src="txt_spyeraser_installed.png"; document.all['isSEtxt'].innerHTML="<img src=\"txt_spyeraser_installed.png\">"; document.all['isSEDownload'].innerHTML=" "; } if(parseInt(SUMP)==0) { //document.all['sumprow'].style.bgColor="#f8fafc"; window.document.all['sumprow'].style.background = '#f8fafc'; window.document.all['sumprow1'].style.background = '#f8fafc'; window.document.all['sumprow2'].style.background = '#f8fafc'; document.all['isSUMRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img src=\"txt_notinstalled.png\" onmouseover=\"this.src='txt_notinstalled_h.png'\" onmouseout=\"this.src='txt_notinstalled.png'\" onmousedown=\"this.src='txt_notinstalled_d.png'\" border=0 ></a>"; document.all['isSUMPPerformance'].src="txt_performance.png"; document.all['isSUMPReIcon'].src="icon_sump_notinstalled.png"; document.all['isSUMPtxt'].innerHTML="<img src=\"txt_speedupmypc.png\" border=0 >"; document.all['isSUMDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"sumpclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>"; } else if (parseInt(SUMP)==1) { sumpinstalled=true; document.all['isSUMRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>"; document.all['isSUMPPerformance'].src="txt_performance_installed.png"; document.all['isSUMPReIcon'].src="icon_sump_registered.png"; //document.all['isSUMPtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"sumpclick\").click();' hideFocus=true><img src=\"txt_speedupmypc_installed.png\" onmouseover=\"this.src='txt_speedupmypc_h.png'\" onmouseout=\"this.src='txt_speedupmypc.png'\" onmousedown=\"this.src='txt_speedupmypc_installed.png'\" border=0 ></a>"; document.all['isSUMPtxt'].innerHTML="<img src=\"txt_speedupmypc_installed.png\" >"; //document.all['isSUMDownload'].innerHTML="chandan"; document.all['isSUMDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"sumpclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>"; //document.all['isRBDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"rbclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>"; } else if (parseInt(SUMP)==2) { sumpinstalled=true; document.all['isSUMRegistered'].innerHTML="<img src=\"txt_registered.png\">"; document.all['isSUMPPerformance'].src="txt_performance_installed.png"; document.all['isSUMPReIcon'].src="icon_sump_registered.png"; document.all['isSUMPtxt'].innerHTML="<img src=\"txt_speedupmypc_installed.png\">"; document.all['isSUMDownload'].innerHTML=" "; } if(parseInt(RB)==0) { window.document.all['rbrow'].style.background = '#f8fafc'; window.document.all['rbrow1'].style.background = '#f8fafc'; window.document.all['rbrow2'].style.background = '#f8fafc'; rbinstalled=false; document.all['isRBRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img src=\"txt_notinstalled.png\" onmouseover=\"this.src='txt_notinstalled_h.png'\" onmouseout=\"this.src='txt_notinstalled.png'\" onmousedown=\"this.src='txt_notinstalled_d.png'\" border=0 ></a>"; document.all['isRBStabile'].src="txt_stability_notInstalled.png"; document.all['isRBReIcon'].src="icon_registry_booster_notin.png"; document.all['isRBtxt'].innerHTML="<img src=\"txt_registrybooster_notInstalled.png\" >"; document.all['isRBDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"rbclick\" src=\"btn_downloadNow_normal.png\" onmouseover=\"this.src='btn_downloadNow_hover.png'\" onmouseout=\"this.src='btn_downloadNow_normal.png'\" onmousedown=\"this.src='btn_downloadNow_down.png'\" border=0 ></a>"; } else if (parseInt(RB)==1) { rbinstalled=true; document.all['isRBRegistered'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img src=\"txt_unregistered.png\" onmouseover=\"this.src='txt_unregistered_h.png'\" onmouseout=\"this.src='txt_unregistered.png'\" onmousedown=\"this.src='txt_unregistered_d.png'\" border=0 ></a>"; document.all['isRBStabile'].src="txt_stability.png"; document.all['isRBReIcon'].src="icon_registry_booster_regis.png"; //document.all['isRBtxt'].innerHTML="<a href=\"#\" onClick='document.getElementById(\"rbclick\").click();' hideFocus=true><img src=\"txt_registrybooster.png\" onmouseover=\"this.src='txt_registrybooster_h.png'\" onmouseout=\"this.src='txt_registrybooster.png'\" onmousedown=\"this.src='txt_registrybooster_d.png'\" border=0 ></a>"; document.all['isRBtxt'].innerHTML="<img src=\"txt_registrybooster.png\" >"; document.all['isRBDownload'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"rbclick\" src=\"btn_registerNow_normal.png\" onmouseover=\"this.src='btn_registerNow_hover.png'\" onmouseout=\"this.src='btn_registerNow_normal.png'\" onmousedown=\"this.src='btn_registerNow_down.png'\" border=0 ></a>"; } else if (parseInt(RB)==2) { rbinstalled=true; document.all['isRBRegistered'].innerHTML="<img src=\"txt_registered.png\">"; document.all['isRBStabile'].src="txt_stability.png"; document.all['isRBReIcon'].src="icon_registry_booster_regis.png"; document.all['isRBtxt'].innerHTML="<img src=\"txt_registrybooster.png\">"; document.all['isRBDownload'].innerHTML=" "; } } // Added by Priya for show and hide the Power Suite button in the middlw of overview page function scanprogress_showscanoption(scanoption,memory,files,keys,cookies) { if(parseInt(scanoption)==5) { if(parseInt(cookies)==1) { document.all['cScan'].src="cs_text_black_bg.png"; } } else if(parseInt(scanoption)==1) { if(parseInt(cookies)==1) { var str; str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML); if(str>0) { document.all['cScan'].src="cs_text_black.png"; } else { document.all['cScan'].src="ci_text_ok.png"; } } document.all['mScan'].src="mps_text_black_bg.png"; } else if((parseInt(scanoption)==3) || (parseInt(scanoption)==4)) { if(parseInt(memory)==1) { var str; str=parseInt(document.all['scanprogress_memory_infected'].innerHTML); if(str>0) { document.all['mScan'].src="mps_text_black.png"; } else { document.all['mScan'].src="mpi_text_ok.png"; } } if(parseInt(cookies)==1) { var str; str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML); if(str>0) { document.all['cScan'].src="cs_text_black.png"; } else { document.all['cScan'].src="ci_text_ok.png"; } } document.all['rkScan'].src="rks_text_black_bg.png"; } else if(parseInt(scanoption)==2) { if(parseInt(memory)==1) { var str; str=parseInt(document.all['scanprogress_memory_infected'].innerHTML); if(str>0) { document.all['mScan'].src="mps_text_black.png"; } else { document.all['mScan'].src="mpi_text_ok.png"; } } if(parseInt(keys)==1) { var str; str=parseInt(document.all['scanprogress_registries_infected'].innerHTML); if(str>0) { document.all['rkScan'].src="rks_text_black.png"; } else { document.all['rkScan'].src="rki_text_ok.png"; } } if(parseInt(cookies)==1) { var str; str=parseInt(document.all['scanprogress_cookies_infected'].innerHTML); if(str>0) { document.all['cScan'].src="cs_text_black.png"; } else { document.all['cScan'].src="ci_text_ok.png"; } } // if(parseInt(files)==1) // { // var str; // str=parseInt(document.all['scanprogress_files_infected'].innerHTML); // // if(str>0) // { // document.all['fScan'].src="fs_text_black.png"; // } // else // { // document.all['fScan'].src="fi_text_ok.png"; // } // } // document.all['fScan'].src="fs_text_black_bg.png"; } } // Added by Priya for show and hide the Power Suite button on the left panel function JS_SetSCFlag(besc) { if (parseInt(besc)==1) { // Temporary Comment document.getElementById("IS_UPGRADE_SYSTEMCARE").style.visibility='visible'; } else { // Temporary Comment document.getElementById("IS_UPGRADE_SYSTEMCARE").style.visibility='hidden'; } return besc; } //function monitors_deactivate(breg1) //{ // if (parseInt(breg1)==0) // { // //alert("true"); // //document.getElementById("Scandetailsdiv").style.visibility='hidden'; // //document.getElementById("Messagespan").style.visibility='visible'; // // } // // // return breg1; //} /////////////////////// function resizeElements(){ return false; var change=document.body.offsetHeight-prevSize; if(document.all['system_scroll_1']){ document.all['system_scroll_1'].style.height=(250+change)+"px"; } if(document.all['scanresults_scroll_2']){ //document.all['scanresults_scroll_2'].style.height=(125+change)+"px"; } if(document.all['system_scroll_2']){ //document.all['system_scroll_2'].style.height=(200+change)+"px"; } if(document.all['application_scroll_1']){ //document.all['application_scroll_1'].style.height=(250+change)+"px"; } if(document.all['application_scroll_2']){ //document.all['application_scroll_2'].style.height=(200+change)+"px"; } if(document.all['internet_scroll_1']){ //document.all['internet_scroll_1'].style.height=(250+change)+"px"; } if(document.all['internet_scroll_2']){ document.all['internet_scroll_2'].style.height=(200+change)+"px"; } if(document.all['scanhistory_scroll_1']){ document.all['scanhistory_scroll_1'].style.height=(250+change)+"px"; } if(document.all['scanhistory_scroll_2']){ document.all['scanhistory_scroll_2'].style.height=(200+change)+"px"; } if(document.all['quarantine_scroll_1']){ document.all['quarantine_scroll_1'].style.height=(250+change)+"px"; } if(document.all['quarantine_scroll_2']){ document.all['quarantine_scroll_2'].style.height=(200+change)+"px"; } if(document.all['ignorelist_scroll_1']){ document.all['ignorelist_scroll_1'].style.height=(250+change)+"px"; } if(document.all['ignorelist_scroll_2']){ document.all['ignorelist_scroll_2'].style.height=(200+change)+"px"; } //if(document.all['scanprogress_table']){ // document.all['scanprogress_table'].style.height=(150+change)+"px"; //} //if(document.all['scanprogress_scroll']){ //document.all['scanprogress_scroll'].style.height=(75+change)+"px"; //} if(document.all['scanresults_scroll_1']){ //document.all['scanresults_scroll_1'].style.height=(180+change)+"px"; } } function managecheckbox() { if (document.getElementById('chkCompletesystemScan').checked) { document.getElementById('chkScanMemory').checked=true; document.getElementById('chkScanFiles').checked=true; document.getElementById('chkScanKeys').checked=true; document.getElementById('chkScanCookies').checked=true; } else { document.getElementById('chkScanMemory').checked=false; document.getElementById('chkScanFiles').checked=false; document.getElementById('chkScanKeys').checked=false; document.getElementById('chkScanCookies').checked=false; } document.getElementById('storecheckbox').click(); } function oncheckboxclick() { if (document.getElementById('chkScanMemory').checked && document.getElementById('chkScanFiles').checked && document.getElementById('chkScanKeys').checked && document.getElementById('chkScanCookies').checked) { document.getElementById('chkCompletesystemScan').checked=true; } else { document.getElementById('chkCompletesystemScan').checked=false; } document.getElementById('storecheckbox').click(); } function schedulemanagecheckbox() { if (document.getElementById('schedulechkCompletesystemScan').checked) { document.getElementById('schedulechkScanMemory').checked=true; document.getElementById('schedulechkScanFiles').checked=true; document.getElementById('schedulechkScanKeys').checked=true; document.getElementById('schedulechkScanCookies').checked=true; } else { document.getElementById('schedulechkScanMemory').checked=false; document.getElementById('schedulechkScanFiles').checked=false; document.getElementById('schedulechkScanKeys').checked=false; document.getElementById('schedulechkScanCookies').checked=false; } document.getElementById('schedulestorecheckbox').click(); } function onschedulecheckboxclick() { if (document.getElementById('schedulechkScanMemory').checked && document.getElementById('schedulechkScanFiles').checked && document.getElementById('schedulechkScanKeys').checked && document.getElementById('schedulechkScanCookies').checked) { document.getElementById('schedulechkCompletesystemScan').checked=true; } else { document.getElementById('schedulechkCompletesystemScan').checked=false; } document.getElementById('schedulestorecheckbox').click(); } ////function to show page navigation // Shows The Content for first tab function showSummaryPage() { //prevSize=document.body.offsetWidth; // alert("Priya"); if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("summarypage").innerHTML; document.getElementById('summary_page').click(); //document.getElementById('startscan_page').click(); window.document.images.taboverview.src='tab_overview_dark.png'; window.document.images.tabscan.src='tab_spywareScan_normal.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; resizeElements(); document.getElementById('registertrial_page').click(); } } function showCleaningPage() { if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("cleaningpage").innerHTML; // document.getElementById('summary_page').click(); // //document.getElementById('startscan_page').click(); // window.document.images.taboverview.src='tab_overview_dark.png'; // window.document.images.tabscan.src='tab_spywareScan_normal.png'; // window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; // window.document.images.tabsettings.src='tab_settings_normal.png'; // resizeElements(); document.getElementById('registertrial_page').click(); } } // Shows The Content for second tab function showStartScanPage(){ // alert("Priya1"); if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_dark.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("startscanpage").innerHTML; document.getElementById('startscan_page').click(); //document.getElementById('registertrial_page').click(); //resizeElements(); document.getElementById('registertrial_page').click(); } }; // Shows The Content for Third tab function showRTInternetMonitorsPage(){ if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_normal.png'; window.document.images.tabliveguard.src='tab_liveGuard_dark.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("internetmonitorspage").innerHTML; document.getElementById('internetmonitors_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; // Shows The Content for fourth tab function showupdatespage() { document.getElementById('updates_page').click(); } function showSettingsPage(){ if(!scan_in_progress) { //showSettingsAutoUpdatePage(); showSettingsGeneralPage return false; document.all("innerpage").innerHTML=document.frames[0].document.all("settingspage").innerHTML; document.getElementById('settings_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showScanHistoryPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("scanhistorypage").innerHTML; document.getElementById('scanhistory_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; // Added By Priya for showing Register page function showRegisterPage() { document.getElementById('Register_page').click(); // resizeElements(); }; function showSystemCarePage() { document.getElementById('SystemCare_page').click(); // resizeElements(); }; function showAboutPage() { if(!scan_in_progress) { document.getElementById('about_page').click(); } }; function showScanResultsPage() { if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_dark.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; if(document.all("scanhistory_viewdetails")) { //if(document.all("scanhistory_viewdetails").disabled!=true) // Commented by priya { document.all("innerpage").innerHTML = document.frames[0].document.all("scanresultspage").innerHTML; document.all('scanresults_page').click(); } } else { document.all("innerpage").innerHTML=document.frames[0].document.all("scanresultspage").innerHTML; document.all('scanresults_page').click(); } resizeElements(); document.getElementById('registertrial_page').click(); } } function showScanProgressPage() { if(!scan_in_progress) { if (document.getElementById('chkScanMemory').checked || document.getElementById('chkScanFiles').checked || document.getElementById('chkScanKeys').checked || document.getElementById('chkScanCookies').checked) { } else { //alert("Please select some items to be scanned."); document.getElementById('alert_window').click(); return false; } document.all("innerpage").innerHTML=document.frames[0].document.all("scanprogresspage").innerHTML; document.getElementById('scanprogress_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showScanProgressPagesystemtray(){ if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_dark.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("scanprogresspage").innerHTML; document.getElementById('scanprogress_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRealTimePage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("realtimepage").innerHTML; document.getElementById('realtime_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRTApplicationMinitorsPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("applicationmonitorspage").innerHTML; document.getElementById('applicationmonitors_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRTSystemMonitorsPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("systemmonitorspage").innerHTML; document.getElementById('systemmonitors_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRTViewAllEventsPage() { if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeeventspage").innerHTML; document.getElementById('realtimeevents_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRTViewBlockedEventsPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeevents_blocked_page").innerHTML; document.getElementById('realtimeevents_blocked_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsAutoUpdatePage(){ if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_normal.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_dark.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("settingsautoupdatepage").innerHTML; document.getElementById('autoupdate_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsRTProtectionPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("settingsrtprotectionpage").innerHTML; document.getElementById('settingsrtprotection_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsAlertsPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("settingsalertspage").innerHTML; document.getElementById('settingsalerts_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; // Priya For Security Restriction function showSettingsRestrictions(nIndex){ if(!scan_in_progress) { rtpm_event_type=nIndex; document.all("innerpage").innerHTML=document.frames[0].document.all("settingsrestrictions").innerHTML; document.getElementById('settingsrestrictions_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsGeneralPage(){ if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_normal.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_dark.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("settingsgeneralpage").innerHTML; document.getElementById('settingsgeneral_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; //// function showSettingsCommunityPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("settingscommunitypage").innerHTML; document.getElementById('settingscommunity_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsSpywareScanPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("settingsspywarescanpage").innerHTML; document.getElementById('settingsspywarescan_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showUpdatepage(){ if(!scan_in_progress) { //document.all("innerpage").innerHTML=document.frames[0].document.all("Updatepage").innerHTML; document.getElementById('SettingsUpdatepage').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showQuarantinePage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("quarantinepage").innerHTML; document.getElementById('quarantine_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showRestorePage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("restorepage").innerHTML; document.getElementById('RestorePage').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showIgnoreListPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("ignorelistpage").innerHTML; document.getElementById('ignorelist_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSchedulePage(){ if(!scan_in_progress) { window.document.images.taboverview.src='tab_overview_normal.png'; window.document.images.tabscan.src='tab_spywareScan_dark.png'; window.document.images.tabliveguard.src='tab_liveGuard_normal.png'; window.document.images.tabsettings.src='tab_settings_normal.png'; document.all("innerpage").innerHTML=document.frames[0].document.all("scheduletaskpage").innerHTML; document.getElementById('scheduletask_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSettingsRealtimePage() { if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all("startscanpage").innerHTML; document.getElementById('startscan_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showAutoUpdateStatusPage(){ if(!scan_in_progress) { //document.all("innerpage").innerHTML=document.frames[0].document.all("autoupdatestatuspage").innerHTML; document.getElementById('autoupdatestatus_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showScanResultsDialogPage(){ if(!scan_in_progress) { document.all("innerpage").innerHTML=document.frames[0].document.all(" scanresultsdialogpage").innerHTML; document.getElementById(' scanresultsdialog_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showrealtimeeventsPage(nIndex) { if(!scan_in_progress) { ///All monitors allowed events nIndex = 0 ///All Application monitors allowed events nIndex = 1 ///All internet monitors allowed events nIndex = 2 ///All System monitors allowed events nIndex = 3 rtpm_event_type=nIndex; document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeeventspage").innerHTML; document.getElementById('realtimeevents_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function blockprograms(nIndex) { if(!scan_in_progress) { ///All monitors allowed events nIndex = 0 ///All Application monitors allowed events nIndex = 1 ///All internet monitors allowed events nIndex = 2 ///All System monitors allowed events nIndex = 3 rtpm_event_type=nIndex; document.all("innerpage").innerHTML=document.frames[0].document.all("divblockprograms").innerHTML; document.getElementById('blockprograms_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showrealtimeblockedeventsPage(nIndex) { if(!scan_in_progress) { ///All monitors allowed events nIndex = 0 ///All Application monitors allowed events nIndex = 1 ///All internet monitors allowed events nIndex = 2 ///All System monitors allowed events nIndex = 3 rtpm_blocked_event_type=nIndex; document.all("innerpage").innerHTML=document.frames[0].document.all("realtimeevents_blocked_page").innerHTML; document.getElementById('realtimeevents_blocked_page').click(); resizeElements(); document.getElementById('registertrial_page').click(); } }; function showSuspectDialog() { if(!scan_in_progress) { document.getElementById('suspect_page').click(); } }; function checkUncheckAll(theElement) { var theForm = theElement.form, z = 0; for(z=0; z<theForm.length;z++) { if(theForm[z].type == 'checkbox') { theForm[z].checked = theElement.checked; } } } function getMonitor_event_type() { return rtpm_blocked_event_type; } function SetScanProgressState(state) { if(state=="true") scan_in_progress=true; else scan_in_progress=false; } ///Summary page Script //=================== var summary_bad_count=0; var summary_dount_count=0; function initializevar() { summary_bad_count=0; summary_dount_count=0; } function summary_setStatus(id,iconid,status,daysbefore,iconstatus) { if(id=="summary_scanresults") { var arrStatus = status.split(","); if (arrStatus.length>1) { if(iconstatus=="BAD") { summary_bad_count++; document.all[iconid].src="icon_small_error.png"; document.all[id].innerHTML=arrStatus[0]; document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png"; document.all['summary_scanresults_erased'].innerHTML=arrStatus[1]; } else if(iconstatus=="OK") { document.all[iconid].src="icon_error_disabled.png"; document.all[id].innerHTML=arrStatus[0]; document.all['summary_scanresults_erased_icon'].src="icon_small_error_fixed.png"; document.all['summary_scanresults_erased'].innerHTML=arrStatus[1]; } else { summary_dount_count++; document.all[iconid].src="icon_small_error.png"; document.all[id].innerHTML=arrStatus[0]; document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png"; document.all['summary_scanresults_erased'].innerHTML=arrStatus[1]; } } else { document.all[iconid].src="icon_error_disabled.png"; document.all[id].innerHTML="0 Infections Found"; document.all['summary_scanresults_erased_icon'].src="icon_error_fixed_disabled.png"; document.all['summary_scanresults_erased'].innerHTML="0 Infections Erased"; } } else { if(id=="summary_lastscan") { // alert(daysbefore); document.all[id].innerHTML=status; if(daysbefore=="-1") { // alert("d"); document.all['scan_days'].innerHTML="<font color=red>No Scan has been performed yet</font>"; } else { document.all['scan_days'].innerHTML="<font color=#29934F>"+daysbefore+"</font>"; } } return; } if (id=="summary_scanschedule") { // alert(iconstatus); if(iconstatus=="BAD") { summary_bad_count++; document.all[iconid].src="smallcross.png"; //document.all[id].innerHTML='<font color=#0e529e>'+status+'</font>'; document.all[id].innerHTML='<font color=darkred>'+status+'</font>'; }else if(iconstatus=="OK") { document.all[iconid].src="smalltick.png"; document.all[id].innerHTML="Scan Schedule "+status; }else { summary_dount_count++; document.all[iconid].src="smallcross.png"; document.all[id].innerHTML=status; } } else if (id!="summary_scanresults" && id!="summary_lastscan" ) { // alert(id); // alert(iconstatus); if(iconstatus=="BAD") { summary_bad_count++; document.all[iconid].src="smallcross.png"; //document.all[id].innerHTML='<font color=#0e529e>'+status+'</font>'; document.all[id].innerHTML='<font color=darkred>'+status+'</font>'; }else if(iconstatus=="OK") { document.all[iconid].src="smalltick.png"; document.all[id].innerHTML=status; }else { summary_dount_count++; document.all[iconid].src="smallcross.png"; document.all[id].innerHTML=status; } } else if(id=="summary_lastscan") { alert(id); alert(status); alert("priya"); if(iconstatus=="BAD") { summary_bad_count++; document.all[iconid].src="se_icon_noscan.png"; document.all[id].innerHTML="<font color='red'>"+status+"</font>"; }else if(iconstatus=="OK") { document.all[iconid].src="se_icon_details.png"; document.all[id].innerHTML=status; }else { summary_dount_count++; document.all[iconid].src="se_icon_summary.png"; document.all[id].innerHTML=status; } } // Commented by priya "No need at main page" ///////////////////////// } function summary_sethealthStatus(health) { // alert(health); health=parseInt(health); if(health==1) { document.all['summary_status1_icon'].src="se_top_left_menu_graph2.png"; } else if(health==2) { document.all['summary_status1_icon'].src="se_top_left_menu_graph3.png"; } else { document.all['summary_status1_icon'].src="se_top_left_menu_graph1.png"; } } function Scan_Details(nMS,nMI,nFS,nFI,nRS,nRI,nCS,nCI) { if((nMS>0) && (nMI>0)) { document.all[sMIId].src="icon_small_error.png"; } else if((nMS>0) && (nMI==0)) { document.all[sMIId].src="icon_small_error_fixed.png"; } if((nFS>0) && (nFI>0)) { document.all[sFIId].src="icon_small_error.png"; } else if((nFS>0) && (nFI==0)) { document.all[sFIId].src="icon_small_error_fixed.png"; } if((nRS>0) && (nRI>0)) { document.all[sRIId].src="icon_small_error.png"; } else if((nRS>0) && (nRI==0)) { document.all[sRIId].src="icon_small_error_fixed.png"; } if((nCS>0) && (nCI>0)) { document.all[sCIId].src="icon_small_error.png"; } else if((nCS>0) && (nCI==0)) { document.all[sCIId].src="icon_small_error_fixed.png"; } } function adddefinitionsdate(definitionsdate) { document.all['definitionsdatetime'].innerHTML=definitionsdate; }; ///Start Scan Page Script //=================== function startscan_setLastScan(string) { if(string==null || string=="") { string=ID_NO_SCAN; //document.all("startscan_viewdetails").style.visibility='hidden'; document.all("startscan_lastscan_div1").style.visibility='visible'; //document.all("startscan_lastscan_div1").style.visibility='hidden'; document.all("startscan_lastscan_div").style.visibility='hidden'; document.all("startscan_lastscan_div_details").style.visibility='visible'; } else { document.all("startscan_lastscan_div1").style.visibility='hidden'; document.all("startscan_lastscan_div").style.visibility='visible'; document.all("startscan_lastscan_div_details").style.visibility='visible'; } } ///Scan Result Page //=================== var scan_item_details = new Array() function scanresult_clear() { var theTable = document.getElementById('scan_result_table'); var lastRow = theTable.rows.length; for(i=0; i<lastRow ; i++) { theTable.deleteRow(0); } } function event_clear() { var theTable = document.getElementById('realtimeevent_table'); var lastRow = theTable.rows.length; for(i=0; i<lastRow ; i++) { theTable.deleteRow(0); } } // function show_quarantine(AName,sType,SName) // { // document.all["Q_Name"].innerHTML=SName; // document.all["Q_Type"].innerHTML=sType; // document.all["Q_Author"].innerHTML=AName; // // } // // function show_Restore(AName,sType,SName) // { // // document.all["R_Name"].innerHTML=SName; // document.all["R_Type"].innerHTML=sType; // document.all["R_Author"].innerHTML=AName; // // } function showScanresult_ScanDescription() { var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('result')>=0)); var row=document.all[id]; //row.style.BACKGROUND-IMAGE('gifborder_transparent.gif'); highlightRow_Scanresult(row); } // Added By Priya function Left(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0,n); } function Right(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } } function Mid(STRING,START,END) { if(!START){START=0}; if(!END || END > STRING.length){END=STRING.length}; if(END!=STRING.length){END = START + END}; return STRING.substring(START,END); } ///////////////////////////// function toggleScanResult() { var str=event.srcElement.id; var index=str.replace(/.+_/,''); var row=document.all['result'+index]; var tree=document.all['tree_'+index]; //var viewhide=document.all['viewhide_'+index]; var table=document.all['items_table_'+index]; var spycount=document.all['spycount_'+index]; //spycount.innerText=""; if(row.expanded) { //Collapse now row.expanded=false; while(table.rows.length>1) { table.deleteRow(1); } // viewhide.innerHTML=ID_ALL_DET_LOC; //tree.src='collapse.png'; } else { //Expand now //viewhide.innerHTML=ID_HIDE_DETAILS; // tree.src='expand.png'; var row1,cell1,cell2; row.expanded=true; count=0; //Insert Files for(var x=0;x<row.files.length;x++) { var file=row.files[x]; row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); cell1.innerHTML=' '; //cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell2.innerHTML='<font color=red>'+file.name+'</font>'; //cell2.innerHTML=file.name; count=count+1; } //Insert Processes for(var x=0;x<row.processes.length;x++) { var process=row.processes[x]; row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); // cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell1.innerHTML=' '; cell2.innerHTML='<font color=red>'+process.name+'</font>'; //cell2.innerHTML=process.name; count=count+1; } //Insert Folders for(var x=0;x<row.folders.length;x++) { var folder=row.folders[x]; row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); // cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell1.innerHTML=' '; cell2.innerHTML='<font color=red>'+folder+'</font>'; //cell2.innerHTML=folder; count=count+1; } //Insert Reg Keys for(var x=0;x<row.regkeys.length;x++) { var regkey=row.regkeys[x]; // Added By Priya var breakingno=50; //////////////////// row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); // cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell1.innerHTML=' '; // Added By Priya if (regkey.length>breakingno) { Str1=Left(regkey,breakingno); Str2=Mid(regkey,breakingno,regkey.length); cell2.innerHTML='<font color=red>'+Str1 + "<br>" + Str2+'</font>'; //cell2.innerHTML=Str1 + "<br>" + Str2; } else { cell2.innerHTML='<font color=red>'+regkey+'</font>'; //cell2.innerHTML=regkey; } ///////////////////////// count=count+1; } //Insert reg Values for(var x=0;x<row.regvalues.length;x++) { var regvalue=row.regvalues[x]; row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); // cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell1.innerHTML=' '; cell2.innerHTML='<font color=red>'+regvalue.name+'</font>'; //cell2.innerHTML=regvalue.name; count=count+1; } //Insert Cookies for(var x=0;x<row.cookies.length;x++) { var cookie=row.cookies[x]; row1=table.insertRow(); cell1=row1.insertCell(); cell2=row1.insertCell(); //cell1.innerHTML='<img src="doubt_small.gif" width="22" height="22">'; cell1.innerHTML=' '; cell2.innerHTML='<font color=red>'+cookie+'</font>'; //cell2.innerHTML=cookie; count=count+1; } ///////Priya To Show the total infection for each spyware in scan result page //spycount.innerText=count+" Infections "; /////////////////////////////////////////////////////////////////////////////// } } //function scanresult_addspyware(tindex,tname,tlevel,ttype,tdesc,tadvice,tstatus,tprev_status,counts) //Priya comment for ' Show the total infection for each spyware in scan result page function scanresult_addspyware(tindex,tname,tlevel,ttype,tdesc,tadvice,tstatus,tprev_status,counts,totalinfected) //Added by priya Priya for Show the total infection for each spyware in scan result page { prev_row=null; var theTable = document.all['scan_result_table']; //Added By Priya var lastrow = theTable.rows.length; //////////////// var row =theTable.insertRow(); row.setAttribute('id','result'+tindex); //row.setAttribute('id','result1'+tindex); row.tindex=tindex; row.tname=tname; row.tlevel=tlevel; row.ttype=ttype; row.tdesc=tdesc; row.tadvice=tadvice; row.tprev_status=tprev_status; row.onclick=showScanresult_ScanDescription; row.expanded=false; row.files=new Array(); row.processes=new Array(); row.folders=new Array(); row.regkeys=new Array(); row.regvalues=new Array(); row.cookies=new Array(); var cell = row.insertCell(); var str=document.frames[0].document.all['scanresult_item'].innerHTML; str=str.replace(/imgreplace/,'se_scanResult_list_icon_x.png'); str=str.replace(/imageid/,'img_' + tindex); str=str.replace(/namereplace/,tname); var status; tlevel=parseInt(tlevel); if(tlevel==1){ status=1; row.tslevel=ID_LOW_THREAT; str=str.replace(/dangerstringreplace/,ID_LOW_THREAT); //str=str.replace(/dangerimagereplace/,'danger_1.png'); //str=str.replace(/dangerimagereplace/,'threadlevel1.png'); str=str.replace(/dangerimagereplace/,'threadlevel1.gif'); }else if(tlevel==2){ status=1; row.tslevel=ID_MODERATE; str=str.replace(/dangerstringreplace/,ID_MODERATE); //str=str.replace(/dangerimagereplace/,'danger_2.png'); //str=str.replace(/dangerimagereplace/,'threadlevel2.png'); str=str.replace(/dangerimagereplace/,'threadlevel2.gif'); }else if(tlevel==3){ status=3; row.tslevel=ID_ELEVATED; str=str.replace(/dangerstringreplace/,ID_ELEVATED); //str=str.replace(/dangerimagereplace/,'danger_3.png'); //str=str.replace(/dangerimagereplace/,'threadlevel3.png'); str=str.replace(/dangerimagereplace/,'threadlevel3.gif'); }else if(tlevel==4){ status=3; row.tslevel=ID_HIGH; str=str.replace(/dangerstringreplace/,ID_HIGH); //str=str.replace(/dangerimagereplace/,'danger_4.png'); //str=str.replace(/dangerimagereplace/,'threadlevel4.png'); str=str.replace(/dangerimagereplace/,'threadlevel4.gif'); }else { status=3; row.tslevel=ID_SEVERE; str=str.replace(/dangerstringreplace/,ID_SEVERE); //str=str.replace(/dangerimagereplace/,'danger_5.png'); //str=str.replace(/dangerimagereplace/,'threadlevel5.png'); str=str.replace(/dangerimagereplace/,'threadlevel5.gif'); } if(tprev_status=='1'){ str=str.replace(/prevactionreplace/,ID_PE); }else if(tprev_status=='3'){ str=str.replace(/prevactionreplace/,ID_QUA); }else if(tprev_status=='4'){ str=str.replace(/prevactionreplace/,ID_REMOVED); } else { str=str.replace(/prevactionreplace/,' '); } str=str.replace(/replaceid/g,tindex); cell.innerHTML=str; if(tprev_status=='3'){ document.all['select_'+tindex].style.visibility='hidden'; }else if(tprev_status=='4'){ document.all['select_'+tindex].style.visibility='hidden'; }else { document.all['select_'+tindex].selectedIndex=parseInt(tstatus); } document.all['select_'+tindex].selectedIndex=parseInt(tstatus); var count=parseInt(document.all['scanresults_item_count'].innerHTML); document.all['scanresults_item_count'].innerHTML=counts; //Added By Priya //document.all['scanresults_item_totalcount'].innerHTML=counts; document.all['scan_result_table'].style.cursor='hand'; ///////////// //document.all['scanresults_message'].style.visibility="visible"; document.all['scanresult_continue'].disabled=false; //alert(document.getElementById('scanresult_restore').disabled); //alert(navigator.appVersion); //document.all['scanresult_restore'].disabled=false; //document.all['scanresults_learnmore'].disabled=false; //Added By Priya // fillcolorinrow(row,lastrow); theTable.rows[0].click(); // Priya To Show the total infection for each spyware in scan result page var spycount=document.all['spycount_'+tindex]; spycount.innerText=totalinfected+ID_INF; ////////////////////////////////////////////////////////////// } function setcount(finalcount) { document.all['scanresults_item_count'].innerHTML=finalcount; //document.all['scanresults_item_totalcount'].innerHTML=finalcount; } function scanresult_addfile(index,name,path,size,publisher,md5,date) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; var file=new Object(); file.name=name; file.path=path; file.size=size; file.publisher=publisher; file.md5=md5; file.date=date; row.files.push(file); } } function scanresult_addprocess(index,name,path,size,publisher,md5,date,pid) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; var processes=new Object(); process.name=name; process.path=path; process.size=size; process.publisher=publisher; process.md5=md5; process.date=date; process.pid=pid; row.processes.push(process); } } function scanresult_addfolder(index,path) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; row.folders.push(path); } } function scanresult_addregkey(index,name) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; row.regkeys.push(name); } } function scanresult_addregvalue(index,name,rootkey,value,data) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; var regvalue=new Object(); regvalue.name=name; regvalue.rootkey=rootkey; regvalue.value=value; regvalue.data=data; row.regvalues.push(regvalue); } } function scanresult_addcookie(index,path) { if(document.all['result'+index]!=null){ var row=document.all['result'+index]; row.cookies.push(path); } } function scanresult_getselection(index) //returns int about combobox selection { //return document.getElementById(index).selectedIndex if(document.all['select_'+index]!=null){ return document.all['select_'+index].selectedIndex; } return -1; } function scanresult_disablerestorepoint(bflagOSXP)//returns true or false { if (parseInt(bflagOSXP)==1) { // alert("1"); document.getElementById('scanresult_restore').disabled=false; } else { // alert("0"); document.getElementById('scanresult_restore').disabled=true; } return bflagOSXP; } function scanresult_getrestorepoint()//returns true or false { //return document.getElementById("scanresult_restore").checked; return document.all["scanresult_restore"].checked; } function scanresult_getselectedindex()//returns which row is selected { if(prev_row!=null){ return prev_row.tindex; } return -1; } //Added by priya function highlightRow_Scanresult(row) { if(prev_row != row){ if(prev_row!=null) { // if(prev_row.rowIndex%2==1) // { // // prev_row.style.backgroundColor="#f1f6ff"; // prev_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderRight = '1px solid #f1f6ff'; // } // else // { // // prev_row.style.backgroundColor="#f1f6ff"; // prev_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // prev_row.cells[0].style.borderRight = '1px solid #f1f6ff'; // } prev_row.style.backgroundColor="#ffffff"; } //row.style.border="1px solid #356464"; // row.cells[0].style.borderLeft = '1px solid #000000'; // row.cells[0].style.borderTop = '1px solid #000000'; // row.cells[0].style.borderBottom = '1px solid #000000'; // row.cells[0].style.borderRight = '1px solid #000000'; // row.style.backgroundColor="#e6edf5"; // var str=row.innerHTML; // str=str.replace('se_scanResult_list_icon_.png','se_scanResult_list_icon_i.png'); // row.innerHTML=str; var imgstring =eval(window.document.images['img_' + row.tindex]); imgstring.src='se_scanResult_list_icon_i.png'; if(prev_row!=null) { var previmgstring=eval(window.document.images['img_' + prev_row.tindex]); previmgstring.src='se_scanResult_list_icon_x.png'; } //alert (row.innerHTML); //imgreplace prev_row=row; var str=getScanResultHtml(row); document.all['scan_desc'].innerHTML=str; } /////////////////// //if(prev_row != row){ // if(prev_row!=null){ // prev_row.style.backgroundColor="white"; // } //row.style.backgroundColor="#DFE6F9";//commented by chandan // row.style.backgroundColor="#f3f7ff"; // prev_row=row; // var str=getScanResultHtml(row); // document.all['scan_desc'].innerHTML=str; //} } function getScanResultHtml(row){ // Added By Priya var breakingno=15; var sName=row.tname; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["Desc_Name"].innerHTML=Str1 + '....'; } else { document.all["Desc_Name"].innerHTML=row.tname; } } else { document.all["Desc_Name"].innerHTML=row.tname; //cell2.innerHTML=regkey; } //document.all["Desc_Name"].innerHTML=row.tname; document.all["Desc_Type"].innerHTML=row.ttype; // alert(row.tslevel); // alert(ID_LOW_THREAT); if (row.tslevel==ID_LOW_THREAT) { document.all["Desc_status"].innerHTML='<font color=#076d2d>Low</font>'; } if (row.tslevel==ID_MODERATE) { document.all["Desc_status"].innerHTML='<font color=#61da08>'+row.tslevel+'</font>'; } if (row.tslevel==ID_ELEVATED) { document.all["Desc_status"].innerHTML='<font color=#c8c627>'+row.tslevel+'</font>'; } if (row.tslevel==ID_HIGH) { document.all["Desc_status"].innerHTML='<font color=#eca331>'+row.tslevel+'</font>'; } if (row.tslevel==ID_SEVERE) { document.all["Desc_status"].innerHTML='<font color=red>'+row.tslevel+'</font>'; } // var str='<strong>'+row.tname+'</strong><br>'; // // str+='<strong>'+ID_TYPE+'</strong> '+row.ttype+'<br>'; // To be localized // // str+='<strong>'+ID_THREAT_LEVEL+'</strong> '+row.tslevel+'<br><br><strong>'+ID_SPY_DESC+'</strong>'; // To be localized //str+=row.tdesc; var str=row.tdesc; // if(row.tadvice!=""){ // str+='<br><br><strong>'+ID_ADVICE+'</strong>'; // To be localized // str+=row.tadvice; // } return str; } /////Quarantined Page //=================== function quarantine_clear() { var theTable = document.getElementById('quar_result_table'); var lastRow = theTable.rows.length; for(i=0; i<lastRow ; i++) { theTable.deleteRow(0); } document.getElementById('quar_desc_table').innerText=ID_NO_QUARANTINE_LIST; if(document.getElementById('quarantine_remove_all').style.visibility == "visible") { document.getElementById('quarantine_remove_all').style.visibility = "hidden" } //if(document.getElementById('quarantine_remove_this').style.visibility == "visible") //{ //document.getElementById('quarantine_remove_this').style.visibility = "hidden" //} //if(document.getElementById('quarantine_unquarantine_this').style.visibility == "visible") //{ //document.getElementById('quarantine_unquarantine_this').style.visibility = "hidden" //} //if(document.getElementById('quarantine_learnmore').style.visibility == "visible") //{ // document.getElementById('quarantine_learnmore').style.visibility = "hidden" //} if(document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility == "visible") { document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility = "hidden" } } function quarantine_setstatus(id,status) { document.getElementById(id).innerText = status; } function showQuarresult_QuarDescription() { //highlightRows_Quarresult(event.srcElement.id); var rowid; rowid=event.srcElement.id; var checkcount=rowid.indexOf('checkbox'); if (checkcount!=-1) { } else { highlightRows_Quarresult(rowid); } } var quar_item_details = new Array(); var quarantinepage_selected_item=-1; function quarantine_addspyware(name,type,date,desc,advice,author) { search_row=null; var theTable = document.all['quar_result_table']; var lastRow = theTable.rows.length; var row_id = parseInt(lastRow) ; if(name=="") { document.getElementById('quarantine_remove_all').disabled="true"; //document.getElementById('quarantine_remove_this').disabled="true"; //document.getElementById('quarantine_unquarantine_this').disabled="true"; //document.getElementById('quarantine_learnmore').disabled="true"; document.getElementById('quarantine_unquarantine_checkedchecked').disabled="true"; } else { var Row =theTable.insertRow(); Row.setAttribute('id',row_id); Row.title=name; Row.type=type; Row.author=author; Row.setAttribute('height',30); Row.onclick=showQuarresult_QuarDescription; var Cell ; Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('width',205); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmain(this);'> " +name; //alert("priya"); Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('width',167); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); Cell.innerHTML=type ; Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); Cell.innerHTML= date; //var desc_string = "" //desc_string += ' ' //desc_string += '<strong>' +name+ '<strong><br><strong>Type:<strong>' +type+ ' <br><strong>Description:<strong>' +desc+ ' <br><strong>Type:<strong>' +advice +'<br></table> ' //quar_item_details[row_id]=desc_string if(document.getElementById('quarantine_remove_all').style.visibility == "hidden") { document.getElementById('quarantine_remove_all').style.visibility = "visible" } //if(document.getElementById('quarantine_remove_this').style.visibility == "hidden") //{ //document.getElementById('quarantine_remove_this').style.visibility = "visible" //} //if(document.getElementById('quarantine_unquarantine_this').style.visibility == "hidden") //{ //document.getElementById('quarantine_unquarantine_this').style.visibility = "visible" //} //if(document.getElementById('quarantine_learnmore').style.visibility == "hidden") //{ // document.getElementById('quarantine_learnmore').style.visibility = "visible" //} if(document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility == "hidden") { document.getElementById('quarantine_unquarantine_checkedchecked').style.visibility = "visible" } document.all['quar_result_table'].style.cursor='hand'; document.getElementById('quarantine_remove_all').disabled=false; document.getElementById('quarantine_unquarantine_checkedchecked').disabled=false; theTable.rows[0].click(); } } var quar_add_file_list = new Array(); var quar_add_file_list_show = new Array(); function quarantine_addfile(index,name,path,size,publisher,md5,date) { if(quar_add_file_list_show[index+'_file_dis']) { quar_add_file_list_show[index+'_file_dis'] += '<tr ><td id="' + name + '_file_dis" height="2" valign="top"><img src="images/image.png" style="left:0px;height:20" > ' + path + '</td></tr>' ; } else { quar_add_file_list_show[index+'_file_dis'] = '<tr ><td id="' + index + '_file_dis" height="2"valign="top"><img id="'+index+'" style="left:0px;height:20" src="images/image.png" >' + path + '</td></tr>' ; } var string = "<strong>"+ID_FILE+"</strong><br>" string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>' +publisher+ ' <br><strong>'+ID_MD+'</strong>' +md5 +'<br><strong>'+ID_DATE+'</strong>' +date +'<br>'; if(quar_add_file_list[index+'_file']) quar_add_file_list[index+'_file'] += string; else quar_add_file_list[index+'_file'] = string; } var quar_add_process = new Array(); var quar_add_proc_list_show = new Array(); function quarantine_addprocess(index,name,path,size,publisher,md5,date,pid) { if(quar_add_proc_list_show[index+'_proc']) quar_add_proc_list_show[index+'_proc'] += '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>' ; else quar_add_proc_list_show[index+'_proc'] = '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>' ; var string = '<strong>'+ID_PROCESS+'</strong><br>'; string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>' +publisher+ ' <br><strong>'+ID_MD+'</strong>' +md5 +'<br><strong>'+ID_DATE+'</strong>' +date +'<br><strong>'+ID_PID+'</strong>' +pid +'<br>' if(quar_add_process[index+'_proc']) quar_add_process[index+'_proc'] += string else quar_add_process[index+'_proc'] = string } var quar_add_folder = new Array(); var quar_add_fold_list_show = new Array(); function quarantine_addfolder(index,name,path) { if(quar_add_fold_list_show[index+'_fold_dis']) { quar_add_fold_list_show[index+'_fold_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top">img src="images/image.png" onClick=""> ' + path + ' </td><br>' ; } else { quar_add_fold_list_show[index+'_fold_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + ' </td><br>' ; } var string = "<strong>"+ID_FOLDER+"</strong><br>"; string += path+ ' <br>' if(quar_add_folder[index+'_fold']) quar_add_folder[index+'_fold'] += string else quar_add_folder[index+'_fold'] = string } var quar_add_regkey = new Array(); var quar_add_regkey_list_show = new Array(); function quarantine_addregkey(index,name,rootkey) { //alert(rootkey); if(quar_add_regkey_list_show[index+'_regkey_dis']) quar_add_regkey_list_show[index+'_regkey_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; else quar_add_regkey_list_show[index+'_regkey_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; var string =""; if(quar_add_regkey[index+'_regkey']) { string +="<font size=1>"+rootkey+ ' </font><br>'; quar_add_regkey[index+'_regkey'] += string } else { string = "<strong>Rootkey</strong><br>"; string +="<font size=1>"+rootkey+ ' </font><br>'; quar_add_regkey[index+'_regkey'] = string; } } var quar_add_regvalue = new Array(); var quar_add_regkeyval_list_show = new Array(); function quarantine_addregvalue(index,name,rootkey,value,data) { if(quar_add_regkeyval_list_show[index+'_regkeyval_dis']) quar_add_regkeyval_list_show[index+'_regkeyval_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; else quar_add_regkeyval_list_show[index+'_regkeyval_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; var string = "<strong>"+ID_REGKEYVAL+"</strong><br>"; string +='<strong>'+ID_ROOTKEY+'</strong>' +rootkey+ ' <br><strong>'+ID_VALUE+'</strong>' +value+ ' <br><strong>'+ID_DATA+'</strong>' +data+ ' <br>'; if(quar_add_regvalue[index+'_regval']) quar_add_regvalue[index+'_regval'] += string else quar_add_regvalue[index+'_regval'] = string } var quar_add_cookie = new Array(); var quar_add_cookie_list_show = new Array(); function quarantine_addcookie(index,name,path) { if(quar_add_cookie_list_show[index+'_cookie_dis']) quar_add_cookie_list_show[index+'_cookie_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' +path + ' </td><br>' ; else quar_add_cookie_list_show[index+'_cookie_dis'] ='<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">'+ path + ' </td><br>' ; var string = "<strong>"+ID_COOKIE+"</strong><br>" string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br>' if(quar_add_cookie[index+'_fold']) quar_add_cookie[index+'_fold'] += string else quar_add_cookie[index+'_fold'] = string } function quarantine_ischecked(index)//returns true or false { if(document.getElementById(index).checked) return true; return false } function quarantine_getselectedindex()//returns selected row number { return quarantinepage_selected_item; } ///////////////////////////////////////////////// /////Restore Page //=================== function delete_clear() { var theTable = document.getElementById('del_result_table'); var lastRow = theTable.rows.length; for(i=0; i<lastRow ; i++) { theTable.deleteRow(0); } //document.getElementById('del_desc_table').innerText="No Deleted list found"; if(document.getElementById('delete_remove_all').style.visibility == "visible") { document.getElementById('delete_remove_all').style.visibility = "hidden" } //if(document.getElementById('delete_remove_this').style.visibility == "visible") //{ //document.getElementById('delete_remove_this').style.visibility = "hidden" //} //if(document.getElementById('delete_undelete_this').style.visibility == "visible") //{ //document.getElementById('delete_undelete_this').style.visibility = "hidden" //} //if(document.getElementById('delete_learnmore').style.visibility == "visible") //{ // document.getElementById('delete_learnmore').style.visibility = "hidden" //} if(document.getElementById('delete_undelete_checkedchecked').style.visibility == "visible") { document.getElementById('delete_undelete_checkedchecked').style.visibility = "hidden" } } function delete_setstatus(id,status) { document.getElementById(id).innerText = status; } function showDelresult_DelDescription() { var rowid; rowid=event.srcElement.id; var checkcount=rowid.indexOf('checkbox'); if (checkcount!=-1) { // checkcount=checkcount-2; // //alert(checkcount); // // if (checkcount==0) // { // checkcount=1; // } // var myrowid = Mid(rowid,0,checkcount); // alert(myrowid); // //highlightRows_Delresult(myrowid); // // alert(window.document.getElementById(myrowid+'_checkbox').checked); // if (window.document.getElementById(myrowid+'_checkbox').checked) // { // window.document.getElementById(myrowid+'_checkbox').checked=false; // } // else // { // window.document.getElementById(myrowid+'_checkbox').checked=true; // } } else { highlightRows_Delresult(rowid); } } var del_item_details = new Array(); var deletepage_selected_item=-1; function delete_addspyware(name,type,date,desc,advice,author) { search_row=null; var theTable = document.all['del_result_table']; var lastRow = theTable.rows.length; var row_id = parseInt(lastRow) ; //option if(name=="") { document.getElementById('delete_remove_all').disabled="true"; //document.getElementById('delete_remove_this').disabled="true"; //document.getElementById('delete_undelete_this').disabled="true"; //document.getElementById('delete_learnmore').disabled="true"; //Cell = Row.insertCell(); //Cell = Row.insertCell(); document.getElementById('delete_undelete_checkedchecked').disabled="true"; }else { var Row =theTable.insertRow(); Row.setAttribute('id',row_id); Row.title=name; Row.type=type; Row.author=author; Row.setAttribute('height',30); Row.onclick=showDelresult_DelDescription; var Cell ; Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('width',205); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); //Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmaindel("+row_id+");'> " +name ; Cell.innerHTML=" <input type='checkbox' id='"+row_id+"_checkbox' onclick='uncheckmain(this);'> " +name ; Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('width',167); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); //Cell.innerHTML="<p onclick='uncheckmaindel("+row_id+");'>"+type+"</p>"; Cell.innerHTML=type; Cell = Row.insertCell(); Cell.setAttribute('id',row_id); Cell.setAttribute('align',"left"); Cell.setAttribute('nowrap'); Cell.innerHTML= date; //var desc_string = "" //desc_string += ' ' //desc_string += '<strong>' +name+ '<strong><br><strong>Type:<strong>' +type+ ' <br><strong>Description:<strong>' +desc+ ' <br><strong>Type:<strong>' +advice +'<br></table> ' //del_item_details[row_id]=desc_string if(document.getElementById('delete_remove_all').style.visibility == "hidden") { document.getElementById('delete_remove_all').style.visibility = "visible" } //if(document.getElementById('delete_remove_this').style.visibility == "hidden") //{ //document.getElementById('delete_remove_this').style.visibility = "visible" //} //if(document.getElementById('delete_undelete_this').style.visibility == "hidden") //{ //document.getElementById('delete_undelete_this').style.visibility = "visible" //} //if(document.getElementById('delete_learnmore').style.visibility == "hidden") //{ // document.getElementById('delete_learnmore').style.visibility = "visible" //} if(document.getElementById('delete_undelete_checkedchecked').style.visibility == "hidden") { document.getElementById('delete_undelete_checkedchecked').style.visibility = "visible" } document.all['del_result_table'].style.cursor='hand'; document.getElementById('delete_remove_all').disabled=false; document.getElementById('delete_undelete_checkedchecked').disabled=false; //highlightRows_Delresult(1); theTable.rows[0].click(); } } var del_add_file_list = new Array(); var del_add_file_list_show = new Array(); function delete_addfile(index,name,path,size,publisher,md5,date) { if(del_add_file_list_show[index+'_file_dis']) { del_add_file_list_show[index+'_file_dis'] += '<tr ><td id="' + name + '_file_dis" height="2" valign="top"><img src="images/image.png" style="left:0px;height:20" > ' + path + '</td></tr>' ; } else { del_add_file_list_show[index+'_file_dis'] = '<tr ><td id="' + index + '_file_dis" height="2"valign="top"><img id="'+index+'" style="left:0px;height:20" src="images/image.png" >' + path + '</td></tr>' ; } var string = "<strong>"+ID_FILE+"</strong><br>" string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>' +publisher+ ' <br><strong>'+ID_MD+'</strong>' +md5 +'<br><strong>'+ID_DATE+'</strong>' +date +'<br>'; if(del_add_file_list[index+'_file']) del_add_file_list[index+'_file'] += string; else del_add_file_list[index+'_file'] = string; } var del_add_process = new Array(); var del_add_proc_list_show = new Array(); function delete_addprocess(index,name,path,size,publisher,md5,date,pid) { if(del_add_proc_list_show[index+'_proc']) del_add_proc_list_show[index+'_proc'] += '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>' ; else del_add_proc_list_show[index+'_proc'] = '<td id="' + index + '_proc_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + '</td><br>' ; var string = '<strong>'+ID_PROCESS+'</strong><br>'; string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br><strong>'+ID_SIZE+'</strong>' +size + ' <br><strong>'+ID_PUBLISHER+'</strong>' +publisher+ ' <br><strong>'+ID_MD+'</strong>' +md5 +'<br><strong>'+ID_DATE+'</strong>' +date +'<br><strong>'+ID_PID+'</strong>' +pid +'<br>' if(del_add_process[index+'_proc']) del_add_process[index+'_proc'] += string else del_add_process[index+'_proc'] = string } var del_add_folder = new Array(); var del_add_fold_list_show = new Array(); function delete_addfolder(index,name,path) { if(del_add_fold_list_show[index+'_fold_dis']) { del_add_fold_list_show[index+'_fold_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top">img src="images/image.png" onClick=""> ' + path + ' </td><br>' ; } else { del_add_fold_list_show[index+'_fold_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + path + ' </td><br>' ; } var string = "<strong>"+ID_FOLDER+"</strong><br>"; string += path+ ' <br>' if(del_add_folder[index+'_fold']) del_add_folder[index+'_fold'] += string else del_add_folder[index+'_fold'] = string } var del_add_regkey = new Array(); var del_add_regkey_list_show = new Array(); function delete_addregkey(index,name,rootkey) { if(del_add_regkey_list_show[index+'_regkey_dis']) del_add_regkey_list_show[index+'_regkey_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; else del_add_regkey_list_show[index+'_regkey_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; var string =""; if(del_add_regkey[index+'_regkey']) { string +="<font size=1>"+rootkey+ ' </font><br>'; del_add_regkey[index+'_regkey'] += string } else { string = "<strong>Rootkey</strong><br>"; string +="<font size=1>"+rootkey+ ' </font><br>'; del_add_regkey[index+'_regkey'] = string; } } var del_add_regvalue = new Array(); var del_add_regkeyval_list_show = new Array(); function delete_addregvalue(index,name,rootkey,value,data) { if(del_add_regkeyval_list_show[index+'_regkeyval_dis']) del_add_regkeyval_list_show[index+'_regkeyval_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; else del_add_regkeyval_list_show[index+'_regkeyval_dis'] = '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' + rootkey + ' </td><br>' ; var string = "<strong>"+ID_REGKEYVAL+"</strong><br>"; string +='<strong>'+ID_ROOTKEY+'</strong>' +rootkey+ ' <br><strong>'+ID_VALUE+'</strong>' +value+ ' <br><strong>'+ID_DATA+'</strong>' +data+ ' <br>'; if(del_add_regvalue[index+'_regval']) del_add_regvalue[index+'_regval'] += string else del_add_regvalue[index+'_regval'] = string } var del_add_cookie = new Array(); var del_add_cookie_list_show = new Array(); function delete_addcookie(index,name,path) { if(del_add_cookie_list_show[index+'_cookie_dis']) del_add_cookie_list_show[index+'_cookie_dis'] += '<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">' +path + ' </td><br>' ; else del_add_cookie_list_show[index+'_cookie_dis'] ='<td id="' + index + '_file_dis" height="2" valign="top"><img src="images/image.png" onClick="">'+ path + ' </td><br>' ; var string = "<strong>"+ID_COOKIE+"</strong><br>" string +='<strong>'+ID_PATH+'</strong>' +path+ ' <br>' if(del_add_cookie[index+'_fold']) del_add_cookie[index+'_fold'] += string else del_add_cookie[index+'_fold'] = string } function delete_ischecked(index)//returns true or false { if(document.getElementById(index).checked) return true; return false } function delete_getselectedindex()//returns selected row number { return deletepage_selected_item; } ///////////////////// To highlight row of a table /////////////////////////////////// function highlightRows_Delresult(rowid) { var set = 0; var table = document.getElementById("del_result_table"); var end = parseInt(rowid) + 2; for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i]; if(parseInt(search_row.id)==parseInt(rowid)) { // document.all["R_Name"].innerHTML=search_row.title; // Added By Priya var breakingno=20; var sName=search_row.title; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["R_Name"].innerHTML=Str1 + '....'; } else { document.all["R_Name"].innerHTML=search_row.title; } } else { document.all["R_Name"].innerHTML=search_row.title; } // document.all["R_Name"].innerHTML=search_row.title; document.all["R_Type"].innerHTML=search_row.type; if (search_row.author=="") { sRAuthor="Unkown"; } else { sRAuthor=search_row.author; } document.all["R_Author"].innerHTML=sRAuthor; deletepage_selected_item=i; // if (window.document.getElementById(rowid+'_checkbox').checked) // { // window.document.getElementById(rowid+'_checkbox').checked=false; // window.document.getElementById("checkall").checked=false; // } // else // { // window.document.getElementById(rowid+'_checkbox').checked=true; // } // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // // search_row.cells[2].style.borderTop = '1px solid #000000'; // search_row.cells[2].style.borderBottom = '1px solid #000000'; // search_row.cells[2].style.borderRight = '1px solid #000000'; // // search_row.style.backgroundColor = "#ffffff"; // search_row.style.backgroundColor = "#e6edf5"; document.getElementById('delete_listclick').click(); } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // } ////////////////// //alert(search_row.id+'_checkbox'); //uncheckmaindel(search_row.id); //window.document.getElementById(search_row.id+'_checkbox').checked=false; //window.document.getElementById(rowChk).checked=false; search_row.style.backgroundColor = "#ffffff"; } } } //////////////////////////////////////////////////// function highlightRows_Quarresult(rowid) { var set = 0; var table = document.getElementById("quar_result_table"); var end = parseInt(rowid) + 2; for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i]; if(search_row.id == rowid) { // Added By Priya var breakingno=20; var sName=search_row.title; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["Q_Name"].innerHTML=Str1 + '....'; } else { document.all["Q_Name"].innerHTML=search_row.title; } } else { document.all["Q_Name"].innerHTML=search_row.title; } // document.all["Q_Name"].innerHTML=search_row.title; document.all["Q_Type"].innerHTML=search_row.type; if (search_row.author=="") { sQAuthor="Unkown"; } else { sQAuthor=search_row.author; } document.all["Q_Author"].innerHTML=sQAuthor; quarantinepage_selected_item=i; // if (window.document.getElementById(rowid+'_checkbox').checked) // { // window.document.getElementById(rowid+'_checkbox').checked=false; // window.document.getElementById("checkall").checked=false; // } // else // { // window.document.getElementById(rowid+'_checkbox').checked=true; // } // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // // // search_row.cells[2].style.borderTop = '1px solid #000000'; // search_row.cells[2].style.borderBottom = '1px solid #000000'; // search_row.cells[2].style.borderRight = '1px solid #000000'; // // search_row.style.backgroundColor = "#ffffff"; search_row.style.backgroundColor = "#e6edf5"; document.getElementById('quarantine_listclick').click(); } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // } //window.document.getElementById(search_row.id+'_checkbox').checked=false; search_row.style.backgroundColor = "#ffffff"; } } } //// Scan History Page //============================ function showScanhistory_Description() { /*var string = ""; if(scan_history_desc[index]) { string += scan_history_desc[index] ; } document.getElementById('scan_history_desc').innerHTML = string;*/ highlightRows_ScanHistory(event.srcElement.id); } function highlightRows_ScanHistory(rowid) { var set = 0; var table = document.getElementById("scan_history_result_table"); for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i] if(search_row.id == rowid) { //document.all["StartDate"].innerHTML=search_row.time; //if(scanhistory_selected_item!=i) //{ scanhistory_selected_item=i; //} //search_row.style.backgroundColor = "#fdffd1"; // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // search_row.cells[1].style.borderRight = '1px solid #000000'; // // // // search_row.style.backgroundColor = "#ffffff"; // search_row.style.backgroundColor = "#e6edf5"; //document.all['scanhistory_listclick'].click(); } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // } ////////////////// search_row.style.backgroundColor = "#ffffff"; } } document.all["scanhistory_deletethisscan"].disabled=false; document.all["scanhistory_viewdetails"].disabled=false; document.all["Elog"].disabled=false; document.all["scanhistory_clearhistory"].disabled=false; } var more_info_spyware=0; function showSpywareInfo(spywareid) { more_info_spyware=spywareid; document.all['scanhistory_spyware_click'].click(); } function getselectedspywareid() { return more_info_spyware;; } //var scan_history_desc = new Array(); var scanhistory_selected_item=-1; function test_focusin() { document.getElementById('nhours').style.backgroundColor = "#fdffd1"; } function test_focusout() { document.getElementById('nhours').style.backgroundColor = "#ffffff"; } function test() { var nKeycode=window.event.keyCode; if(nKeycode==38) { var nHours=document.getElementById('nhours').innerText; nHours=parseInt(nHours); if(nHours<23) nHours++; document.getElementById('nhours').innerText=nHours; }else if(nKeycode==40) { var nHours=document.getElementById('nhours').innerText; nHours=parseInt(nHours); if(nHours>0) nHours--; document.getElementById('nhours').innerText=nHours; } } function test1() { var nMins=parseInt(document.all['nmins'].innerText); } function test2() { var nSecs=parseInt(document.all['nseconds'].innerText); } function test3() { var nDay=parseInt(document.all['nday'].innerText); } function scan_insertRow(time,ndetected,nremoved,nquarantined,nignored) { //var theTable = document.getElementById('scan_history_result_table'); search_row=null; var theTable = document.all['scan_history_result_table']; var lastRow = theTable.rows.length; var row_id = parseInt(lastRow) + 1 var row = theTable.insertRow(); row.setAttribute('id',time); row.setAttribute('height',35); row.time=time; row.onclick=showScanhistory_Description; var Cell; if(time=="0") { //Cell = row.insertCell(); //Cell.innerText =ID_NO_SCAN; document.getElementById("scanhistory_viewdetails").disabled=true; document.getElementById("scanhistory_deletethisscan").disabled=true; document.getElementById("scanhistory_clearhistory").disabled=true; document.getElementById("Elog").disabled=true; }else { Cell = row.insertCell(); Cell.setAttribute('id',time); Cell.setAttribute('align',"left"); Cell.setAttribute('valign',"top"); Cell.setAttribute('width',240); Cell.innerHTML=" "+time; Cell = row.insertCell(); Cell.setAttribute('id',time); Cell.setAttribute('align',"left"); Cell.setAttribute('valign',"top"); Cell.innerHTML=ID_SPY_DETECTED + ndetected + ID_SPY_REMOVED + nremoved +"<br>"+ID_SPY_QUA + nquarantined + ID_SPY_IGN + nignored; //var desc_string = "" //desc_string += 'Spyware Scan Details<br>Start Date:<strong>' +time+ '<strong><br><br><strong> Detected Infections</strong><br><br><strong>Spyware Detected:<strong>' +ndetected+ ' <br><strong>Spyware Removed:<strong>' +nremoved+ ' <br><strong>Spyware Quarantined:<strong>' +nquarantined +'<br><strong>Spyware Ignored:<strong>'+nignored+'</table> ' //scan_history_desc[time]=desc_string; //Added By Priya document.all['scan_history_result_table'].style.cursor='hand'; ////////// //highlightRows_ScanHistory(theTable.rows[0].id); document.getElementById("scanhistory_viewdetails").disabled=false; document.getElementById("scanhistory_deletethisscan").disabled=false; document.getElementById("scanhistory_clearhistory").disabled=false; document.getElementById("Elog").disabled=false; theTable.rows[0].click(); } } function scanhistory_clear() { //var theTable = document.getElementById('scan_history_result_table'); var theTable = document.all['scan_history_result_table']; var lastRow = theTable.rows.length; //alert (lastRow); for(i=0; i<lastRow; i++) { //document.getElementById("scan_history_result_table").deleteRow(i); //commented by chandan document.all['scan_history_result_table'].deleteRow(0); // Added by chandan //alert(document.all['scan_history_result_table']); //document.all['scan_history_result_table'].deleteRow(i); } //Clear Item Count document.all['scanhistory_item_count'].innerHTML="0"; document.all["scanhistory_deletethisscan"].disabled=true; document.all["scanhistory_viewdetails"].disabled=true; document.all["scanhistory_clearhistory"].disabled=true; document.all["Elog"].disabled=true; theTable.refresh(); } function scanhistory_addscan(time ,ndetected,nremoved,nquarantined,nignored) { //alert(time); if(time!="0") { scan_insertRow(time,ndetected,nremoved,nquarantined,nignored); //Increment Item Count var count=document.all['scanhistory_item_count'].innerHTML; document.all['scanhistory_item_count'].innerHTML=++count; } // Added By Priya if no log exist else { scan_insertRow(time ,ndetected,nremoved,nquarantined,nignored); } ///////////////////////////////////// } function scanhistory_getselected() { //if anchor is disabled return -1 return scanhistory_selected_item; } /////Realtime events page function realtimeevent_insertRow(time,monitorid,allowed_blocked,title,event_desc,monitor_desc) { search_row=null; var theTable = document.all['realtimeevent_table']; var lastRow = theTable.rows.length; var row_id = parseInt(lastRow) + 1 var Row = theTable.insertRow(); Row.setAttribute('id','event_'+lastRow); Row.setAttribute('height',30); Row.time=time; Row.monitorid=monitorid; Row.allowed_blocked=allowed_blocked; Row.title=title; Row.event_desc=event_desc; Row.monitor_desc=monitor_desc; var Cell; Cell = Row.insertCell(); if(time=="0") { //event_clear(); //Cell.innerText ="No Events found."; Cell.innerText =""; document.getElementById("realtimeevents_archive_event_log").disabled=true; document.getElementById("realtimeevents_view_archived_events_log").disabled=true; document.getElementById("realtimeevents_clear_events_log").disabled=true; //document.getElementById("realtimeevents_learn_more").disabled=true; }else { Row.onclick=showrealtimeevent_Description; Cell.setAttribute('id',time); Cell.setAttribute('align',"left"); Cell.setAttribute('valign',"top"); Cell.setAttribute('width',220); Cell.innerHTML=' '+time ; Cell = Row.insertCell(); Cell.setAttribute('id',time); Cell.setAttribute('align',"left"); Cell.setAttribute('valign',"top"); var tempStr=event_desc; Cell.innerHTML=tempStr; //Increment Item Count var count=document.all['realtimeevent_item_count'].innerHTML; document.all['realtimeevent_item_count'].innerHTML=++count; //Added By Priya document.all['realtimeevent_table'].style.cursor='hand'; ///////////////// //highlightRows_realtimeevent(Row); theTable.rows[0].click(); } } function showrealtimeevent_Description() { var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('event_')>=0)); var row=document.all[id]; // document.all["All_EventName"].innerHTML=row.title; // Added By Priya var breakingno=25; var sName=row.title; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["All_EventName"].innerHTML=Str1 + '....'; } else { document.all["All_EventName"].innerHTML=row.title; } } else { document.all["All_EventName"].innerHTML=row.title; } // document.all["All_EventName"].innerHTML=search_row.title; document.all["Event_OccuredTime"].innerHTML=row.time; //var strTemp="<strong>"+row.title+"</strong><BR><BR><b>"+ID_OCC+"</b> "+row.time+"<BR><BR>"+row.event_desc+"<br><br><b>"+ID_ABOUT+row.title+":</b> "+row.monitor_desc; var strTemp=row.event_desc+"<br><br><b>"+ID_ABOUT+row.title+":</b> "+row.monitor_desc; document.all['realtimeevent_desc'].innerHTML= strTemp; highlightRows_realtimeevent(row.id); } function highlightRows_realtimeevent(rowid) { var set = 0; var table = document.getElementById("realtimeevent_table"); for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i]; if(search_row.id == rowid) { if(realtimeevent_selected_item!=i){ realtimeevent_selected_item=i; //document.all['scanhistory_listclick'].click(); } // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // search_row.cells[1].style.borderRight = '1px solid #000000'; //search_row.style.backgroundColor = "#ffffff"; search_row.style.backgroundColor = "#e6edf5"; } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // } ////////////////// ///search_row.style.backgroundColor = "white"; search_row.style.backgroundColor = "#ffffff"; } } document.getElementById("realtimeevents_archive_event_log").disabled=false; document.getElementById("realtimeevents_view_archived_events_log").disabled=false; document.getElementById("realtimeevents_clear_events_log").disabled=false; //document.getElementById("realtimeevents_learn_more").disabled=false; } var more_info_spyware=0; function getselectedEvent() { return more_info_spyware;; } var realtimeevent_selected_item=-1; function realtimeevent_clear() { var theTable = document.all['realtimeevent_table']; var lastRow = theTable.rows.length; for(i=0;i<lastRow;i++) { document.all['realtimeevent_table'].deleteRow(i); } //Clear Item Count document.all['realtimeevent_item_count'].innerHTML="0"; document.getElementById("realtimeevents_archive_event_log").disabled=true; document.getElementById("realtimeevents_view_archived_events_log").disabled=true; document.getElementById("realtimeevents_clear_events_log").disabled=true; //document.getElementById("realtimeevents_learn_more").disabled=true; theTable.refresh(); } function realtimeevent_addscan(time,monitorid,allowed_blocked,title,event_desc,monitor_desc) { realtimeevent_insertRow(time,monitorid,allowed_blocked,title,event_desc,monitor_desc); } function realtimeevent_getselected() { return realtimeevent_selected_item; } //////real time blocked events page var realtime_blockedevent_selected_item=-1; function realtime_blockedevents_clear() { var theTable = document.all['realtime_blockedevent_table']; var lastRow = theTable.rows.length; //alert(lastRow); for(i=0;i<lastRow;i++) { document.all['realtime_blockedevent_table'].deleteRow(i); } //Clear Item Count document.all['realtimeevents_blocked_totalitems'].innerHTML="0"; //document.getElementById("realtimeevents_blocked_remove_all").disabled=true; //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=true; //document.getElementById("realtimeevents_blocked_unblock_this").disabled=true; document.getElementById("realtimeevents_blocked_remove_this").disabled=true; //document.getElementById("realtimeevents_blocked_learnmore").disabled=true; theTable.refresh(); } function realtime_blockedevent_insertRow(time,monitorid,allowed_blocked,title,event_desc) { search_row=null; var theTable = document.all['realtime_blockedevent_table']; var lastRow = theTable.rows.length; var row_id = parseInt(lastRow) + 1 var Row = theTable.insertRow(); Row.setAttribute('id','blockedevent_'+lastRow); Row.setAttribute('height',30) Row.time=time; Row.monitorid=monitorid; Row.allowed_blocked=allowed_blocked; Row.title=title; Row.event_desc=event_desc; var Cell; Cell = Row.insertCell(); if(time=="0") { //Cell.innerHTML =" <b>No Events found.</b>"; Cell.innerText =""; //document.getElementById("realtimeevents_blocked_remove_all").disabled=true; //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=true; //document.getElementById("realtimeevents_blocked_unblock_this").disabled=true; document.getElementById("realtimeevents_blocked_remove_this").disabled=true; //document.getElementById("realtimeevents_blocked_learnmore").disabled=true; }else { Row.onclick=showrealtime_blockedevent_Description; Cell.setAttribute('id',row_id); Cell.setAttribute('width',194); Cell.setAttribute('align',"left"); //Cell.innerHTML="<input type='checkbox' id='"+row_id+"_checkbox' >" +name ; //comented by chandan //Cell.innerHTML=name ; Cell.innerHTML=' '+time ; Cell = Row.insertCell(); Cell.setAttribute('align',"center"); Cell.setAttribute('width',194); Cell.innerHTML=title; //Cell = Row.insertCell(); //Cell.setAttribute('align',"center"); //Cell.setAttribute('width',280); //Cell.innerHTML=' '+title+" "+ID_DEACTIVATED; //Increment Item Count var count=parseInt(document.all['realtimeevents_blocked_totalitems'].innerHTML); document.all['realtimeevents_blocked_totalitems'].innerHTML=++count; ///////Added By Priya document.all['realtime_blockedevent_table'].style.cursor='hand'; ///////////////////// //highlightRows_realtime_blockedevent(Row); theTable.rows[0].click(); } } function showrealtime_blockedevent_Description() { var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('event_')>=0)); var row=document.all[id]; //document.all["Block_EventName"].innerHTML=row.title; // Added By Priya var breakingno=25; var sName=row.title; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["Block_EventName"].innerHTML=Str1 + '....'; } else { document.all["Block_EventName"].innerHTML=row.title; } } else { document.all["Block_EventName"].innerHTML=row.title; } // document.all["Block_EventName"].innerHTML=search_row.title; document.all["Event_DisabledTime"].innerHTML=row.time; //var strTemp="<strong>"+row.title+"</strong><BR><BR><b>"+ID_DISABLED+"</b> "+row.time+"<BR><BR><b>"+ID_DETAILS+"</b> "+row.title+" "+ID_DEACTIVATED +"<br><br>"+row.event_desc+""; var strTemp=row.event_desc; document.all['realtime_blockedevent_desc'].innerHTML= strTemp; highlightRows_realtime_blockedevent(row.id); } function highlightRows_realtime_blockedevent(rowid) { var set = 0; var table = document.getElementById("realtime_blockedevent_table"); for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i]; if(search_row.id == rowid) { if(realtime_blockedevent_selected_item!=i) { realtime_blockedevent_selected_item=i; //document.all['scanhistory_listclick'].click(); } //search_row.style.backgroundColor = "#fdffd1"; // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // // search_row.cells[2].style.borderTop = '1px solid #000000'; // search_row.cells[2].style.borderBottom = '1px solid #000000'; // search_row.cells[2].style.borderRight = '1px solid #000000'; // search_row.style.backgroundColor = "#e6edf5"; } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // // // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // // search_row.cells[2].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[2].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[2].style.borderRight = '1px solid #f1f6ff'; // // } ///////////////// ////search_row.style.backgroundColor = "white"; search_row.style.backgroundColor = "#ffffff"; } } //document.getElementById("realtimeevents_blocked_remove_all").disabled=false; //document.getElementById("realtimeevents_blocked_unblock_checked").disabled=false; //document.getElementById("realtimeevents_blocked_unblock_this").disabled=false; document.getElementById("realtimeevents_blocked_remove_this").disabled=false; //document.getElementById("realtimeevents_blocked_learnmore").disabled=false; } var more_info_spyware=0; function getselected_rt_blockedEvent() { return realtime_blockedevent_selected_item;; } function realtime_blockedevent_addscan(time,monitorid,allowed_blocked,title,event_desc) { realtime_blockedevent_insertRow(time,monitorid,allowed_blocked,title,event_desc); } function realtime_blockedevent_getselected() { return realtime_blockedevent_selected_item; } //// /// Ignore Page //////----------- var ignore_page_norows = 0 var ignore_selected_item=-1; function ignorelist_clear() { //var theTable = document.getElementById('ignore_page_table'); var theTable = document.all['ignore_page_table']; var lastRow = theTable.rows.length; for(i=0;i<lastRow;i++) { //document.getElementById("quarantine_result_table").deleteRow(i); document.all['ignore_page_table'].deleteRow(i); } document.getElementById("ignorelist_remove_this").disabled=true; document.getElementById("ignorelist_remove_checked").disabled=true; //document.getElementById("ignorelist_learnmore").disabled=true; } function showIgnorehistory_Description() { var str=event.srcElement.id; var string = ""; var index=str.replace(/.+_/,''); if(ignore_history_desc[index]) { string += ignore_history_desc[index] ; } document.getElementById("ignore_history_desc").innerHTML = string; // highlightRows_IgnoreHistory(index);*/ highlightRows_IgnoreHistory(event.srcElement.id); } function highlightRows_IgnoreHistory(rowid) { var set = 0; var table = document.getElementById("ignore_page_table"); var end = parseInt(rowid) + 2; for(var i=0;i< table.rows.length;i++) { var search_row =table.rows[i]; if(search_row.id == rowid) { // document.all["I_Name"].innerHTML=search_row.name; // Added By Priya var breakingno=20; var sName=search_row.name; if (sName.length>breakingno) { Str1=Left(sName,breakingno); Str2=Mid(sName,breakingno,sName.length); if(Str2.length>0) { document.all["I_Name"].innerHTML=Str1 + '....'; } else { document.all["I_Name"].innerHTML=search_row.name; } } else { document.all["I_Name"].innerHTML=search_row.name; } // document.all["I_Name"].innerHTML=search_row.title; document.all["I_Type"].innerHTML=search_row.type; quarantinepage_selected_item=i; //search_row.style.backgroundColor = "#fdffd1"; // search_row.cells[0].style.borderLeft = '1px solid #000000'; // search_row.cells[0].style.borderTop = '1px solid #000000'; // search_row.cells[0].style.borderBottom = '1px solid #000000'; // // // search_row.cells[1].style.borderTop = '1px solid #000000'; // search_row.cells[1].style.borderBottom = '1px solid #000000'; // search_row.cells[1].style.borderRight = '1px solid #000000'; // search_row.style.backgroundColor = "#ffffff"; search_row.style.backgroundColor = "#e6edf5"; ignore_selected_item=i; //document.getElementById('ignore_listclick').click(); } else { // Added by chandan for alternate color ///////////// // if (i % 2 == 1) // { // search_row.style.backgroundColor = "#f1f6ff"; // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // // } // else // { // search_row.style.backgroundColor = "#f1f6ff"; // // search_row.cells[0].style.borderLeft = '1px solid #f1f6ff'; // search_row.cells[0].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[0].style.borderBottom = '1px solid #f1f6ff'; // // // search_row.cells[1].style.borderTop = '1px solid #f1f6ff'; // search_row.cells[1].style.borderBottom = '1px solid #f1f6ff'; // search_row.cells[1].style.borderRight = '1px solid #f1f6ff'; // } ////////////////// ///////////search_row.style.backgroundColor = "white"; search_row.style.backgroundColor = "#ffffff"; } } document.getElementById("totalignored").innerHTML=table.rows.length; } var ignore_history_desc = new Array(); function ignorelist_addspyware(name,type,desc,spywareid) { if(name!="0") { search_row=null; var counts=parseInt(ignore_page_norows); var CurrentPosition=parseInt(counts); //var interestingTable = document.getElementById("ignore_page_table"); var theTable = document.all['ignore_page_table']; row = theTable.insertRow(); row.setAttribute('id',name); row.setAttribute('height',25); row.name=name; row.type=type; row.onclick=showIgnorehistory_Description; //Cell = Row.insertCell(); Cell = row.insertCell(); Cell.setAttribute('id',name); Cell.setAttribute('align',"left"); Cell.setAttribute('width',292); Cell.innerHTML=' '+name; Cell = row.insertCell(); Cell.setAttribute('id',name); Cell.setAttribute('align',"left"); Cell.innerHTML=' '+type; var desc_string = ""; //desc_string += '<strong>'+ID_NAME+' ' +name+ '</strong> <br><br><strong>'+ID_TYPE+' </strong>' +type+ ' <br><br><strong>'+ID_SPY_DESC+' </strong>' +desc+ ' <br> '; desc_string += '<strong>'+ID_SPY_DESC+' </strong>' +desc+ ' <br> '; ignore_history_desc[name]=desc_string; ignore_page_norows= parseInt(counts) + 1; //alert(ignore_page_norows); document.getElementById("ignorelist_remove_this").disabled=false; document.getElementById("ignorelist_remove_checked").disabled=false; ///////Added By Priya document.all['ignore_page_table'].style.cursor='hand'; ///////////////////// //document.getElementById("ignorelist_learnmore").disabled=false; //highlightRows_IgnoreHistory(0); theTable.cells[0].click(); }else { //Cell.innerText = ID_IGNORE_LIST; document.getElementById("ignorelist_remove_this").disabled=true; document.getElementById("ignorelist_remove_checked").disabled=true; //document.getElementById("ignorelist_learnmore").disabled=true; } return false; } function ignorelist_ischecked(index ) { //return document.getElementById(index).checked return document.all[index].checked; } function ignorelist_getselectedindex() { //return the index of selected item return ignore_selected_item; var table = document.all['ignore_page_table']; for (var x=0; x<table.rows.length; x++) { var search_row = table.rows[x]; if(search_row.cells[0].style.backgroundColor == "#fdffd1") { return x; } } return -1; } // Scan Progress // -------------- var scanprogress_norows = 0; var scan_progress_count = new Array(); function clear_pre_values() { scanprogress_norows = 0; } function scanprogress_setstatus(id,status) { document.getElementById(id).innerText = status; } function scanprogress_add(name,mycounts) { var counts=parseInt(scanprogress_norows); var Row,Cell; var CurrentPosition=parseInt(counts); //var interestingTable = document.all["scanprogress_table"]; //Row = interestingTable.insertRow(); //Cell = Row.insertCell(); //Cell.innerText = name; //Cell.height="20px"; scanprogress_norows= parseInt(counts) + 1; //document.getElementById('scanprogress_no_objs').innerHTML ="<table cellpadding=0 cellspacing=0 border=0><tr><td width=163 class=txt_Attention height=40 background=orangebgsmall.png align=center><font color=white><b>"+ID_ATTENTION+"</b></td><td width=2></td><td class=txt_Attention width=389 height=40 background=bluebgsmall.png align=center><font color=white><b>"+mycounts+" "+ID_SPYWRAE_INFECTION_FOUND+"</b></font></td></tr></table>"; //document.getElementById('scanprogress_no_objs').innerHTML = "<font color='red'>"+scanprogress_norows+" objects found</font>" document.getElementById('scanprogress_no_objs').innerHTML ="<table cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td align=left width=19 ><img src=icon_error.png></td><td width=4></td><td class=txt_spycount>"+mycounts+" <img src=errorsFound_txt.png style='margin-top:3px;'></td></tr></table>"; scan_progress_count[name] = 1; return false; } function scanprogress_setCount(name ,count ) { scan_progress_count[name] = count; } function scanprogress_setstatus(status) { } function scanprogress_showAnimation(index) { /* index-1 means Registry animation index-2 means Files animation index-3 means Memory animation index-4 means cookie animation */ if(index==1 || index=="1") { //document.getElementById('scanprogress_animation').src="animation_Registry.gif"; //document.getElementById('scanprogress_animation').src="anim.gif"; document.getElementById('scanprogress_animation').src="icon_blue_anim.gif"; } if(index==2 || index=="2") { //document.getElementById('scanprogress_animation').src="animation_File.gif"; //document.getElementById('scanprogress_animation').src="anim.gif"; document.getElementById('scanprogress_animation').src="icon_blue_anim.gif"; } if(index==3 || index=="3") { //document.getElementById('scanprogress_animation').src="animation_Memory.gif"; //document.getElementById('scanprogress_animation').src="anim.gif"; document.getElementById('scanprogress_animation').src="icon_blue_anim.gif"; } if(index==4 || index=="4") { //document.getElementById('scanprogress_animation').src="animation_Registry.gif"; //document.getElementById('scanprogress_animation').src="anim.gif"; document.getElementById('scanprogress_animation').src="icon_blue_anim.gif"; } if(index==0 || index=="0") { //document.getElementById('scanprogress_animation').src="spacer.gif"; //document.getElementById('scanprogress_animation').src="anim_static.gif"; document.getElementById('scanprogress_animation').src="icon_blue_anim_static.gif"; } } // Scan Schedule Page // RealTimeProtection Page // ------------------------------------ function rtpm_setStatus(id,iconid,status,iconstatus) { if(iconstatus == "" || iconstatus == null) { //var str=document.all[iconid].src; //str.replace(/_.+\.png/,"_bad.png"); //document.getElementBYId(iconid).src="images/centre.png"; //document.all[iconid].src=str; if(id=="rtpm_status") { document.all[id].bgcolor="#FF0000" } }else { //document.getElementBYId(iconid).src="images/centre.png"; /*var str=document.all[iconid].src; str.replace(/_.+\.png/,"_good.png"); document.all[iconid].src=str; */ } //document.getElementBYId(id).innerText=status document.all[id].innerHTML=status; } function rtpm_setStatusforid(id,events_no ) { if(events_no>0) { //document.getElementById("rtpm_blocked_automatically").style.visibility = "visible" //document.getElementById("rtpm_blocked_manually").style.visibility = "visible" document.all["rtpm_blocked_automatically"].style.visibility = "visible"; document.all["rtpm_blocked_manually"].style.visibility = "visible"; } else { //document.getElementById("rtpm_blocked_automatically").style.visibility = "hidden" document.all["rtpm_blocked_automatically"].style.visibility = "hidden"; //document.getElementById("rtpm_blocked_manually").style.visibility = "hidden" document.all["rtpm_blocked_manually"].style.visibility = "hidden"; } } //////////////setting status runtime///////////////// //// All Monitor page // ----------------------------------- var prev_row=null; function monitors_add(name,desc,longdesc,status,manageble,mid) { prev_row=null; var thetable = document.getElementById('monitors_add_table'); // document.all['monitors_activate'].disabled=true; var lastrow = thetable.rows.length; var row = thetable.insertRow(); row.monitorname=name; row.desc=desc; row.longdesc=longdesc; row.status=status; row.manageble=manageble; row.onclick=showMonitorDescription; row.mid=mid; row.setAttribute('id','monitor'+mid); row.setAttribute('height',49); var cell; cell = row.insertCell(); cell.setAttribute('width',30); cell.setAttribute('valign','top'); cell.setAttribute('align','center'); //row.cells[0].style.borderLeft = '1px solid #ffffff'; //row.cells[0].style.borderTop = '1px solid #aaafb5'; row.cells[0].style.borderBottom = '2px solid #aaafb5'; if(status == 1) { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"' src='ig_icon_green.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } else { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='ig_icon_red.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } cell = row.insertCell(); //row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '1px solid #aaafb5'; row.cells[1].style.borderBottom = '2px solid #aaafb5'; cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>"; document.all['monitors_add_table'].style.cursor='hand'; fillcolorinrow(row,lastrow); thetable.rows[0].click(); //fillcolorinrow(thetable.rows[countid],parseInt(countid)); } function monitors_setState(mid,status,monitortype) { //document.all['monitors_activate'].disabled=false; // monitortype=1 internet monitortype=2 system monitortype=3 application //alert(monitortype); var str='monitor'+mid; var row=document.all[str]; if(row==null) { return; } row.status=status; str='img_'+mid; if(row==prev_row) { //selected if(parseInt(row.status)==1) { //document.all['monitors_activate'].innerText=ID_DEACTIVATE; //document.all['monitors_activate_icon'].src="deactivate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>"; if (monitortype==1) { document.all[str].src="isg_icon_green.png"; document.all['idleftIGStatus'].src="ig_details_left_green.png"; } if (monitortype==2) { document.all[str].src="ssg_icon_green.png"; document.all['idleftSGStatus'].src="sg_details_left_green.png"; } if (monitortype==3) { document.all[str].src="asg_icon_green.png"; document.all['idleftAGStatus'].src="ag_details_left_green.png"; } } else { //document.all['monitors_activate'].innerText=ID_ACTIVATE; //document.all['monitors_activate_icon'].src="activate.gif"; if (monitortype==1) { document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; document.all[str].src="isg_icon_red.png"; document.all['idleftIGStatus'].src="ig_details_left_red.png"; } if (monitortype==2) { document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activatesys\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; document.all[str].src="ssg_icon_red.png"; document.all['idleftSGStatus'].src="sg_details_left_red.png"; } if (monitortype==3) { document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activateapp\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; document.all[str].src="asg_icon_red.png"; document.all['idleftAGStatus'].src="ag_details_left_red.png"; } } row.click(); } } function monitors_getselected() //returns string { if(prev_row!=null){ return prev_row.mid; }else{ return 0; } } function showMonitorDescription(){ var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('monitor')>=0)); var row=document.all[id]; var strStatus=''; if(row.status==1) { strStatus='<font color=green>'+ID_ACTIVE+'</font>'; } else { strStatus='<font color=darkred>'+ID_INACTIVE+'</font>'; } document.all["Guard_Name"].innerHTML=row.monitorname; document.all["Guard_Status"].innerHTML=strStatus; // document.all['show_description'].innerHTML = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc; document.all['show_description'].innerHTML = row.longdesc; if(parseInt(row.status)==1) { //document.all['monitors_activate'].innerText=ID_DEACTIVATE; //document.all['monitors_activate_icon'].src="deactivate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } else { //document.all['monitors_activate'].innerText=ID_ACTIVATE; //document.all['monitors_activate_icon'].src="activate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } if(parseInt(row.manageble) == 0) { document.all['monitors_manage'].disabled=true; } else { document.all['monitors_manage'].disabled=false; } highlightRow(row); } function highlightRow(row) { if(prev_row != row) { if(prev_row!=null) { // if(prev_row.rowIndex%2==1) // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // // prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // } // else // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // //prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // // } //prev_row.style.backgroundColor="#d1e7ff"; //prev_row.cells[0].style.borderBottom = '2px solid #ffffff'; //prev_row.cells[1].style.borderBottom = '2px solid #ffffff'; prev_row.style.backgroundColor="#ffffff"; } //row.className ="borderclass"; //row.style.cellpadding=0; //row.style.cellspacing=0; // row.cells[0].style.borderLeft = '1px solid #ffffff'; // row.cells[0].style.borderTop = '2px solid #aaafb5'; // row.cells[0].style.borderBottom = '2px solid #ffffff'; // // row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '2px solid #aaafb5'; // row.cells[1].style.borderBottom = '2px solid #ffffff'; // row.style.backgroundColor="#ffffff"; row.style.backgroundColor="#e6edf5"; //alert(row.mid); var imgstring =eval(window.document.images['img_' + row.mid]); if(row.status == 1) { imgstring.src='isg_icon_green.png'; idleftIGStatus.src='ig_details_left_green.png'; } else { imgstring.src='isg_icon_red.png'; idleftIGStatus.src='ig_details_left_red.png'; } // imgstring.src='se_ig_list_icon_i.png'; if(prev_row!=null) { // alert(prev_row.mid); var previmgstring=eval(window.document.images['img_' + prev_row.mid]); if(prev_row.status == 1) { previmgstring.src='ig_icon_green.png'; } else { previmgstring.src='ig_icon_red.png'; } } // alert(row.status); //row.cells[0].className ="borderclassleft"; //row.cells[1].className ="borderclassright"; //row.cells[1].style.border = '1px solid #000000'; //alert(row.id) prev_row=row; //row.click(); } } function fillcolorinrow(row,lastrow) { if(lastrow%2==1) { // row.style.backgroundColor="#f3f7ff"; row.style.backgroundColor="#ffffff"; } else { //row.style.backgroundColor="#d1e7ff"; row.style.backgroundColor="#ffffff"; } } var prev_row=null; function monitors_addApplication(name,desc,longdesc,status,manageble,mid) { prev_row=null; var thetable = document.getElementById('monitors_add_table'); // document.all['monitors_activate'].disabled=true; var lastrow = thetable.rows.length; var row = thetable.insertRow(); row.monitorname=name; row.desc=desc; row.longdesc=longdesc; row.status=status; row.manageble=manageble; row.onclick=showApplicationMonitorDescription; row.mid=mid; row.setAttribute('id','monitor'+mid); row.setAttribute('height',49); var cell; cell = row.insertCell(); cell.setAttribute('width',30); cell.setAttribute('valign','top'); cell.setAttribute('align','center'); //row.cells[0].style.borderLeft = '1px solid #ffffff'; //row.cells[0].style.borderTop = '1px solid #aaafb5'; row.cells[0].style.borderBottom = '2px solid #aaafb5'; if(status == 1) { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"' src='ag_icon_green.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } else { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='ag_icon_red.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } cell = row.insertCell(); //row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '1px solid #aaafb5'; row.cells[1].style.borderBottom = '2px solid #aaafb5'; cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>"; document.all['monitors_add_table'].style.cursor='hand'; fillcolorinrow(row,lastrow); thetable.rows[0].click(); //fillcolorinrow(thetable.rows[countid],parseInt(countid)); } function showApplicationMonitorDescription(){ var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('monitor')>=0)); var row=document.all[id]; var strStatus=''; if(row.status==1) { strStatus='<font color=green>'+ID_ACTIVE+'</font>'; } else { strStatus='<font color=darkred>'+ID_INACTIVE+'</font>'; } document.all["Guard_Name"].innerHTML=row.monitorname; document.all["Guard_Status"].innerHTML=strStatus; // document.all['show_description'].innerHTML = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc; document.all['show_description'].innerHTML = row.longdesc; if(parseInt(row.status)==1) { //document.all['monitors_activate'].innerText=ID_DEACTIVATE; //document.all['monitors_activate_icon'].src="deactivate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } else { //document.all['monitors_activate'].innerText=ID_ACTIVATE; //document.all['monitors_activate_icon'].src="activate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } if(parseInt(row.manageble) == 0) { document.all['monitors_manage'].disabled=true; } else { document.all['monitors_manage'].disabled=false; } highlightRowapplication(row); } function highlightRowapplication(row) { if(prev_row != row) { if(prev_row!=null) { // if(prev_row.rowIndex%2==1) // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // // prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // } // else // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // //prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // // } //prev_row.style.backgroundColor="#d1e7ff"; //prev_row.cells[0].style.borderBottom = '2px solid #ffffff'; //prev_row.cells[1].style.borderBottom = '2px solid #ffffff'; prev_row.style.backgroundColor="#ffffff"; } //row.className ="borderclass"; //row.style.cellpadding=0; //row.style.cellspacing=0; // row.cells[0].style.borderLeft = '1px solid #ffffff'; // row.cells[0].style.borderTop = '2px solid #aaafb5'; // row.cells[0].style.borderBottom = '2px solid #ffffff'; // // row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '2px solid #aaafb5'; // row.cells[1].style.borderBottom = '2px solid #ffffff'; // row.style.backgroundColor="#ffffff"; row.style.backgroundColor="#e6edf5"; var imgstring =eval(window.document.images['img_' + row.mid]); if(row.status == 1) { imgstring.src='asg_icon_green.png'; idleftAGStatus.src='ag_details_left_green.png'; } else { imgstring.src='asg_icon_red.png'; idleftAGStatus.src='ag_details_left_red.png'; } // imgstring.src='se_ag_list_icon_i.png'; if(prev_row!=null) { var previmgstring=eval(window.document.images['img_' + prev_row.mid]); if(prev_row.status == 1) { previmgstring.src='ag_icon_green.png'; } else { previmgstring.src='ag_icon_red.png'; } } //row.cells[0].className ="borderclassleft"; //row.cells[1].className ="borderclassright"; //row.cells[1].style.border = '1px solid #000000'; //alert(row.id) prev_row=row; //row.click(); } } var prev_row=null; function monitors_addSystem(name,desc,longdesc,status,manageble,mid) { prev_row=null; var thetable = document.getElementById('monitors_add_table'); // document.all['monitors_activate'].disabled=true; var lastrow = thetable.rows.length; var row = thetable.insertRow(); row.monitorname=name; row.desc=desc; row.longdesc=longdesc; row.status=status; row.manageble=manageble; row.onclick=showSystemMonitorDescription; row.mid=mid; row.setAttribute('id','monitor'+mid); row.setAttribute('height',49); var cell; cell = row.insertCell(); cell.setAttribute('width',30); cell.setAttribute('valign','top'); cell.setAttribute('align','center'); //row.cells[0].style.borderLeft = '1px solid #ffffff'; //row.cells[0].style.borderTop = '1px solid #aaafb5'; row.cells[0].style.borderBottom = '2px solid #aaafb5'; if(status == 1) { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid+"' src='sg_icon_green.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } else { cell.innerHTML = "<p style=margin-left:10px;><img id='img_"+mid +"' src='sg_icon_red.png' align='center'></p>"; //document.all['monitors_activate_icon'].src="deactivate.gif"; } cell = row.insertCell(); //row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '1px solid #aaafb5'; row.cells[1].style.borderBottom = '2px solid #aaafb5'; cell.innerHTML ="<p style=margin-left:15px;><font class=nShowText ><strong>"+name+"</strong></font><font class=nShowText> <br>"+desc+"</font></p>"; document.all['monitors_add_table'].style.cursor='hand'; fillcolorinrow(row,lastrow); thetable.rows[0].click(); //fillcolorinrow(thetable.rows[countid],parseInt(countid)); } function showSystemMonitorDescription(){ var elem=event.srcElement; var id; do{ id=elem.id; elem=elem.parentElement; }while(! (document.all[id] && id.search('monitor')>=0)); var row=document.all[id]; var strStatus=''; if(row.status==1) { strStatus='<font color=green>'+ID_ACTIVE+'</font>'; } else { strStatus='<font color=darkred>'+ID_INACTIVE+'</font>'; } document.all["Guard_Name"].innerHTML=row.monitorname; document.all["Guard_Status"].innerHTML=strStatus; // document.all['show_description'].innerHTML = '<b>'+row.monitorname+'</b><br><b>'+ID_STATUS+'</b> '+strStatus+'<br><b>'+ID_SPY_DESC+'</b> '+row.longdesc; document.all['show_description'].innerHTML = row.longdesc; if(parseInt(row.status)==1) { //document.all['monitors_activate'].innerText=ID_DEACTIVATE; //document.all['monitors_activate_icon'].src="deactivate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"deactiveThisGuard_btn_n.png\" onmouseover=\"this.src='deactiveThisGuard_btn_h.png'\" onmouseout=\"this.src='deactiveThisGuard_btn_n.png'\" onmousedown=\"this.src='deactiveThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } else { //document.all['monitors_activate'].innerText=ID_ACTIVATE; //document.all['monitors_activate_icon'].src="activate.gif"; document.all['monitors_activate1'].innerHTML="<a href=\"#\" hideFocus=true><img id=\"monitors_activate\" src=\"activeThisGuard_btn_n.png\" onmouseover=\"this.src='activeThisGuard_btn_h.png'\" onmouseout=\"this.src='activeThisGuard_btn_n.png'\" onmousedown=\"this.src='activeThisGuard_btn_d.png'\" border=0 ></a>"; //alert(document.all['monitors_activate'].innerHTML); } if(parseInt(row.manageble) == 0) { document.all['monitors_manage'].disabled=true; } else { document.all['monitors_manage'].disabled=false; } highlightRowSystem(row); } function highlightRowSystem(row) { if(prev_row != row) { if(prev_row!=null) { // if(prev_row.rowIndex%2==1) // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // // prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // //prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // } // else // { // // //prev_row.style.backgroundColor="#f1f6ff"; // //prev_row.style.backgroundColor="#ffffff"; // //prev_row.cells[0].style.borderLeft = '1px solid #ffffff'; // // prev_row.cells[0].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[0].style.borderBottom = '1px solid #aaafb5'; // //prev_row.cells[1].style.borderRight = '1px solid #ffffff'; // // prev_row.cells[1].style.borderTop = '2px solid #ffffff'; // // prev_row.cells[1].style.borderBottom = '1px solid #aaafb5'; // // } //prev_row.style.backgroundColor="#d1e7ff"; //prev_row.cells[0].style.borderBottom = '2px solid #ffffff'; //prev_row.cells[1].style.borderBottom = '2px solid #ffffff'; prev_row.style.backgroundColor="#ffffff"; } //row.className ="borderclass"; //row.style.cellpadding=0; //row.style.cellspacing=0; // row.cells[0].style.borderLeft = '1px solid #ffffff'; // row.cells[0].style.borderTop = '2px solid #aaafb5'; // row.cells[0].style.borderBottom = '2px solid #ffffff'; // // row.cells[1].style.borderRight = '1px solid #ffffff'; // row.cells[1].style.borderTop = '2px solid #aaafb5'; // row.cells[1].style.borderBottom = '2px solid #ffffff'; // row.style.backgroundColor="#ffffff"; row.style.backgroundColor="#e6edf5"; var imgstring =eval(window.document.images['img_' + row.mid]); if(row.status == 1) { imgstring.src='ssg_icon_green.png'; idleftSGStatus.src='sg_details_left_green.png'; } else { imgstring.src='ssg_icon_red.png'; idleftSGStatus.src='sg_details_left_red.png'; } // imgstring.src='se_sg_list_icon_i.png'; if(prev_row!=null) { var previmgstring=eval(window.document.images['img_' + prev_row.mid]); if(prev_row.status == 1) { previmgstring.src='sg_icon_green.png'; } else { previmgstring.src='sg_icon_red.png'; } } //row.cells[0].className ="borderclassleft"; //row.cells[1].className ="borderclassright"; //row.cells[1].style.border = '1px solid #000000'; //alert(row.id) prev_row=row; //row.click(); } } ///////////////////////////////////////////////////////////////////////////////////////// function show(id) { //document.getElementById(id).style.visibility="visible" document.all[id].style.visibility="visible"; } function hide(id) { //document.getElementById(id).style.visibility="hidden" document.all[id].style.visibility="hidden"; } //Schedule Page function showOptions() { if(document.all["scanschedule_schedule_task"].selectedIndex == 0) { document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; document.all["timetable"].style["visibility"]="visible"; document.all["mytablerow"].style["visibility"]="visible"; } else if(document.all["scanschedule_schedule_task"].selectedIndex == 1) { document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML; document.all["timetable"].style["visibility"]="visible"; document.all["mytablerow"].style["visibility"]="visible"; } else if(document.all["scanschedule_schedule_task"].selectedIndex == 2) { document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML; document.all["timetable"].style["visibility"]="visible"; document.all["mytablerow"].style["visibility"]="visible"; } else if(document.all["scanschedule_schedule_task"].selectedIndex ==3){ document.all["timetable"].style["visibility"]="visible"; document.all["mytablerow"].style["visibility"]="visible"; document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; Calendar.setup({ inputField : "scanschedule_once_every", // id of the input field ifFormat : "%m/%d/%Y", // format of the input field showsTime : false, // will display a time selector button : "scanschedule_once_every_button", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); } else if(document.all["scanschedule_schedule_task"].selectedIndex == 4) { document.all["options_td"].innerHTML = '<table class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_STARTUP+'</td></tr></table>'; document.all["timetable"].style["visibility"]="hidden"; document.all["mytablerow"].style["visibility"]="hidden"; } else if(document.all["scanschedule_schedule_task"].selectedIndex == 5) { document.all["options_td"].innerHTML = '<table class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_WINLOGON+'</td></tr></table>'; document.all["timetable"].style["visibility"]="hidden"; document.all["mytablerow"].style["visibility"]="hidden"; } } /*function showScheduleOptions(type,str)//,lastexecutiontime,szExecutionTimes) { //document.all['schedule_string'].innerHTML=str; //document.all['lastscandate'].innerHTML=lastexecutiontime; //document.all['timesexecuted'].innerHTML=szExecutionTimes + ' times'; if(type == 1){ document.all["scanschedule_schedule_task"].selectedIndex=0; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; } else if(type == 2){ document.all["scanschedule_schedule_task"].selectedIndex=1; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML; } else if(type == 3 ||type == 4){ document.all["scanschedule_schedule_task"].selectedIndex=2; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML; } else if(type ==0){ document.all["scanschedule_schedule_task"].selectedIndex=3; document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; Calendar.setup({ inputField : "scanschedule_once_every", // id of the input field ifFormat : "%m/%d/%Y", // format of the input field showsTime : false, // will display a time selector button : "scanschedule_once_every_button", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); } else if(type == 6){ document.all["scanschedule_schedule_task"].selectedIndex=4; document.all["options_td"].innerHTML = '<table class="nText"><tr><td>'+ID_STARTUP+' </td></tr></table>'; } else if(type == 7){ document.all["scanschedule_schedule_task"].selectedIndex=5; document.all["options_td"].innerHTML = '<table class="nText"><tr><td>'+ID_WINLOGON+'</td></tr></table>'; } if(document.all["scanschedule_schedule_task"].selectedIndex == 4 || document.all["scanschedule_schedule_task"].selectedIndex == 5) { document.all["timetable"].style["visibility"]="hidden"; document.all["mytablerow"].style["visibility"]="hidden"; } } */ function showScheduleOptions(type,str,str1,lastexecutiontime) { document.all['schedule_string'].innerHTML=str; document.all['lastscandate'].innerHTML=lastexecutiontime; document.all['timesexecuted'].innerHTML=str1 + ' times'; if(type == 1){ document.all["scanschedule_schedule_task"].selectedIndex=0; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_daily'].innerHTML; } else if(type == 2){ document.all["scanschedule_schedule_task"].selectedIndex=1; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_weekly'].innerHTML; } else if(type == 3 ||type == 4){ document.all["scanschedule_schedule_task"].selectedIndex=2; document.all["options_td"].innerHTML = document.frames[0].document.all['schedule_month'].innerHTML; } else if(type ==0){ document.all["scanschedule_schedule_task"].selectedIndex=3; document.all["options_td"].innerHTML =document.frames[0].document.all["schedule_once"].innerHTML; Calendar.setup({ inputField : "scanschedule_once_every", // id of the input field ifFormat : "%m/%d/%Y", // format of the input field showsTime : false, // will display a time selector button : "scanschedule_once_every_button", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); } else if(type == 6){ document.all["scanschedule_schedule_task"].selectedIndex=4; document.all["options_td"].innerHTML = '<table class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_STARTUP+' </td></tr></table>'; } else if(type == 7){ document.all["scanschedule_schedule_task"].selectedIndex=5; document.all["options_td"].innerHTML = '<table class=scheduler_txt cellspacing=5 cellpadding=0><tr><td class=scheduler_txt>'+ID_WINLOGON+'</td></tr></table>'; } if(document.all["scanschedule_schedule_task"].selectedIndex == 4 || document.all["scanschedule_schedule_task"].selectedIndex == 5) { document.all["timetable"].style["visibility"]="hidden"; document.all["mytablerow"].style["visibility"]="hidden"; } } function setScheduleData_Daily(interval,hour,minute){ document.all['scanschedule_daily_days'].selectedIndex=interval-1; if(hour>=12) { if (hour>12) { hour-=12; if(hour<10)hour='0'+hour; document.all['ampm'].value=ID_PM; } } else { document.all['ampm'].value=ID_AM; } document.all['hours'].value=hour; document.all['min'].value=minute; } function setScheduleData_Weekly(interval,hour,minute,mon,tue,wed,thu,fri,sat,sun){ document.all['scanschedule_weekly_days'].selectedIndex=interval-1; if(hour>=12) { if (hour>12) { hour-=12; if(hour<10)hour='0'+hour; document.all['ampm'].value=ID_PM; } } else { document.all['ampm'].value=ID_AM; } document.all['hours'].value=hour; document.all['min'].value=minute; if(mon=="1"){ document.all['scanschedule_weekly_mon2'].checked=true; } if(tue=="1"){ document.all['scanschedule_weekly_tue2'].checked=true; } if(wed=="1"){ document.all['scanschedule_weekly_wed2'].checked=true; } if(thu=="1"){ document.all['scanschedule_weekly_thu2'].checked=true; } if(fri=="1"){ document.all['scanschedule_weekly_fri2'].checked=true; } if(sat=="1"){ document.all['scanschedule_weekly_sat2'].checked=true; } if(sun=="1"){ document.all['scanschedule_weekly_sun2'].checked=true; } } function setScheduleData_Monthly(hour,minute,choice,day,option1,week){ if(hour>=12) { if (hour>12) { hour-=12; if(hour<10)hour='0'+hour; document.all['ampm'].value=ID_PM; } } else { document.all['ampm'].value=ID_AM; } document.all['hours'].value=hour; document.all['min'].value=minute; if(choice=="1"){ document.all['scanschedule_monthly_radio_day'].checked=true; document.all['scanschedule_monthly_day'].selectedIndex=parseInt(day); } else { document.all['scanschedule_monthly_radio_day2'].checked=true; document.all['scanschedule_monthly_which'].selectedIndex=parseInt(option1); document.all['scanschedule_monthly_which_day'].selectedIndex=parseInt(week); } } function setScheduleData_Once(hour,minute,day,month,year){ if(hour>=12) { if (hour>12) { hour-=12; if(hour<10)hour='0'+hour; document.all['ampm'].value=ID_PM; } } else { document.all['ampm'].value=ID_AM; } document.all['hours'].value=hour; document.all['min'].value=minute; if(parseInt(month)<10) month='0'+month; if(parseInt(day)<10) day='0'+day; document.all['scanschedule_once_every'].innerText=month+'/'+day+'/'+year; } var selectitem =""; function selectItem(id) { if(id == document.all["hours"].id) { document.all["hours"].style.backgroundColor = "#316AC5"; document.all["hours"].style.color = "white"; document.all["min"].style.backgroundColor = "white"; document.all["min"].style.color = ""; document.all["ampm"].style.backgroundColor = "white"; document.all["ampm"].style.color = ""; selectitem = "hours"; } else if(id == document.all["min"].id) { document.all["hours"].style.backgroundColor = "white"; document.all["hours"].style.color = ""; document.all["min"].style.backgroundColor ="#316AC5"; document.all["min"].style.color = "white"; document.all["ampm"].style.backgroundColor = "white"; document.all["ampm"].style.color = ""; selectitem = "min"; } else if(id == document.all["ampm"].id) { document.all["hours"].style.backgroundColor = "white"; document.all["hours"].style.color = ""; document.all["min"].style.backgroundColor = "white"; document.all["min"].style.color = ""; document.all["ampm"].style.backgroundColor = "#316AC5"; document.all["ampm"].style.color = "white"; selectitem = "ampm"; } } function incrDecr(action) { //var h =parseInt(document.getElementById("hours").value) ; //var m = parseInt(document.getElementById("min").value) ; var h =eval(document.getElementById("hours").value) ; //static var mybool=true; //static var mybool1=true; if (isNaN(h) || h=="") { mybool=false; h=0; //document.getElementById("hours").value=h; }; var m = eval(document.getElementById("min").value) ; if (isNaN(m) || m=="") { m=0; //document.getElementById("min").value=m; }; if(action == 1) { if(selectitem == "hours") { if (h == 12) { //document.getElementById("hours").value = "01"; document.getElementById("hours").value = "01"; } else { if((h+1)<10) { document.getElementById("hours").value = "0" + (h + 1); } else { document.getElementById("hours").value = h + 1; } } } else if(selectitem == "min") { if (m == 59) { document.getElementById("min").value = "00"; } else { if((m+1)<10) { document.getElementById("min").value ="0" + (m + 1); } else { document.getElementById("min").value =m + 1; } } } else if(selectitem == "ampm") { if (document.getElementById("ampm").value == "AM") { document.getElementById("ampm").value = "PM"; } else { document.getElementById("ampm").value = "AM"; } } } else { if(selectitem == "hours") { if (h == 1) { document.getElementById("hours").value = 12; } else { if((h-1)<10 && (h-1)>0) { document.getElementById("hours").value ="0" + (h - 1); } else { document.getElementById("hours").value = (h - 1); } } } else if(selectitem == "min") { if (m == 0) { document.getElementById("min").value = 59; } else { if((m-1)<10) { document.getElementById("min").value = "0" + (m - 1); } else { document.getElementById("min").value = (m - 1); } } } else if(selectitem == "ampm") { if (document.getElementById("ampm").value == "AM") { document.getElementById("ampm").value = "PM"; } else { document.getElementById("ampm").value = "AM"; } } } } ////////////////////To show Calendar/////////////// function showCalender(){ var cal1 = new calendar1(document.all['scanschedule_once_every']); cal1.year_scroll = true; cal1.time_comp = false; cal1.popup(); } function alert_show(id,text,bShow) { document.all[id].innerText=text; if(bShow==1) { document.all[id].style.visibility="visible"; }else { document.all[id].style.visibility="hidden"; } } function alert_setStatus(id,text) { document.all[id].innerHTML=text; } //function showQuickHelp() //{ // if(!scan_in_progress) // open('http://www.Uniblue.com'); //} function autoupdater_check_button_click() { var bSelected=document.all['settings_autoupdater_enable_autoupdates'].checked; if(bSelected) { document.all['settings_autoupdater_check_updates_time'].disabled=false; document.all['settings_autoupdater_check_updates_day'].disabled=false; }else { document.all['settings_autoupdater_check_updates_time'].disabled=true; document.all['settings_autoupdater_check_updates_day'].disabled=true; } } //menu handler events function markallremove(mycheckbox) { if (mycheckbox.checked) { var coll = document.all.tags("SELECT"); if (coll.length>0) { for (i=0; i<coll.length; i++) coll(i).selectedIndex=3; } } else { showScanResultsPage(); } } function shutdown() { document.all('shutdown').click(); } function close() { if(!scan_in_progress) document.all('close').click(); } function minimize() { document.all('minimize').click(); } function blockprogram_clear() { var lstbox = document.getElementById('lstblockprograms'); while (lstbox.options.length!=0) { lstbox.options[lstbox.options.length-1]=null; } } function addblockprogram(prgramname) { var lstbox = document.getElementById('lstblockprograms'); var lastRow = lstbox.options.length; lstbox.options[lastRow] = new Option(prgramname,prgramname); //new optio } function setCheckBox(checkboxid,checkboxvalue) { //alert (checkboxid+checkboxvalue) var mybool; if (parseInt(checkboxvalue)==1) { mybool='checked'; } else { mybool=''; } document.getElementById(checkboxid).checked=mybool //alert(checkboxvalue); } function setvalues(mycheckbox) { window.document.all('checkboxid').value=mycheckbox.id; window.document.all('checkboxvalue').value=mycheckbox.checked; window.document.all('checkboxclick').click(); } function getcheckboxid() { return window.document.all('checkboxid').value; } function getcheckboxvalue() { return window.document.all('checkboxvalue').value; } function getremoveprogamid() { var removelist; var selectedid; var lstbox = window.document.all('lstblockprograms'); selectedid=lstbox.options.selectedIndex; //alert (selectedid); var optioncount=lstbox.options.length; if (optioncount == 0) { removelist="-2" } else if (selectedid==-1) { removelist="-1"; } else { removelist=lstbox.options[selectedid].value; } /*for (var i=lstbox.options.length-1; i>= 0;i--) { if (lstbox.options[i].selected) { removelist+=lstbox.options[i].value ; } } */ //alert(removelist); return removelist; } function fillupdate(nPercentDone) { // alert(nPercentDone); //window.alert(document.all("pb1").innerHTML) document.all("pb1").innerHTML+="<img src=pb2.png height=15>"; //window.document.images[0].width=parseInt(window.document.images[0].width)+1; //window.document.images[0].focus(); } function uncheckmaindel(rowid) { var rowChk=rowid+'_checkbox'; if (window.document.getElementById(rowChk).checked) { window.document.getElementById(rowChk).checked=false; } else { if (!rowChk.checked) { window.document.getElementById(rowChk).checked=true; window.document.getElementById("checkall").checked=false; } } } function uncheckmain(mycheckbox) { if (!mycheckbox.checked) { window.document.getElementById("checkall").checked=false; }; } //function uncheckmain1(mycheckbox) //{ // if (!mycheckbox.checked) // { // window.document.getElementById("checkall").checked=false; // } // else // { // window.document.getElementById("checkall").checked=true; // } //} function summary_scanresultsclick() { document.all('summary_scanresults').click(); //window.document } function InStr(strSearch, charSearchFor) { for (i=0; i < strSearch.length; i++) { if (charSearchFor == Mid(strSearch, i, 1)) { return i; } } return -1; }